(block)
| 517 | return (ExecutionResult.PENDING, None, None) |
| 518 | |
| 519 | def execution_block_cb(block): |
| 520 | if block.message is not None: |
| 521 | mes = { |
| 522 | "prompt_id": prompt_id, |
| 523 | "node_id": unique_id, |
| 524 | "node_type": class_type, |
| 525 | "executed": list(executed), |
| 526 | |
| 527 | "exception_message": f"Execution Blocked: {block.message}", |
| 528 | "exception_type": "ExecutionBlocked", |
| 529 | "traceback": [], |
| 530 | "current_inputs": [], |
| 531 | "current_outputs": [], |
| 532 | } |
| 533 | server.send_sync("execution_error", mes, server.client_id) |
| 534 | return ExecutionBlocker(None) |
| 535 | else: |
| 536 | return block |
| 537 | def pre_execute_cb(call_index): |
| 538 | # TODO - How to handle this with async functions without contextvars (which requires Python 3.12)? |
| 539 | GraphBuilder.set_default_prefix(unique_id, call_index, 0) |
no test coverage detected