MCPcopy Create free account
hub / github.com/Comfy-Org/ComfyUI / execution_block_cb

Function execution_block_cb

execution.py:519–536  ·  view source on GitHub ↗
(block)

Source from the content-addressed store, hash-verified

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)

Callers 1

process_inputsFunction · 0.85

Calls 2

ExecutionBlockerClass · 0.90
send_syncMethod · 0.80

Tested by

no test coverage detected