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

Method get

execution.py:1256–1267  ·  view source on GitHub ↗
(self, timeout=None)

Source from the content-addressed store, hash-verified

1254 self.not_empty.notify()
1255
1256 def get(self, timeout=None):
1257 with self.not_empty:
1258 while len(self.queue) == 0:
1259 self.not_empty.wait(timeout=timeout)
1260 if timeout is not None and len(self.queue) == 0:
1261 return None
1262 item = heapq.heappop(self.queue)
1263 i = self.task_counter
1264 self.currently_running[i] = copy.deepcopy(item)
1265 self.task_counter += 1
1266 self.server.queue_updated()
1267 return (item, i)
1268
1269 class ExecutionStatus(NamedTuple):
1270 status_str: Literal['success', 'error']

Callers 15

__init__Method · 0.45
get_input_dataFunction · 0.45
get_output_from_returnsFunction · 0.45
_send_cached_uiFunction · 0.45
executeFunction · 0.45
execute_asyncMethod · 0.45
validate_inputsFunction · 0.45
validate_promptFunction · 0.45
cuda_malloc.pyFile · 0.45
conditioning_set_valuesFunction · 0.45
compress_bodyFunction · 0.45

Calls 2

waitMethod · 0.80
queue_updatedMethod · 0.80

Tested by 15

prepare_graph_for_testFunction · 0.36
wait_for_executionMethod · 0.36
listen_for_messagesMethod · 0.36
get_outputMethod · 0.36
did_runMethod · 0.36
was_cachedMethod · 0.36
get_imagesMethod · 0.36
runMethod · 0.36
use_resourceMethod · 0.36
cancel_job_by_idFunction · 0.36