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

Function get_output_data

execution.py:340–346  ·  view source on GitHub ↗
(prompt_id, unique_id, obj, input_data_all, execution_block_cb=None, pre_execute_cb=None, v3_data=None)

Source from the content-addressed store, hash-verified

338 return output
339
340async def get_output_data(prompt_id, unique_id, obj, input_data_all, execution_block_cb=None, pre_execute_cb=None, v3_data=None):
341 return_values = await _async_map_node_over_list(prompt_id, unique_id, obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data)
342 has_pending_task = any(isinstance(r, asyncio.Task) and not r.done() for r in return_values)
343 if has_pending_task:
344 return return_values, {}, False, has_pending_task
345 output, ui, has_subgraph = get_output_from_returns(return_values, obj)
346 return output, ui, has_subgraph, False
347
348def get_output_from_returns(return_values, obj):
349 results = []

Callers 1

executeFunction · 0.85

Calls 2

get_output_from_returnsFunction · 0.85

Tested by

no test coverage detected