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

Function reset_progress_state

comfy_execution/progress.py:323–331  ·  view source on GitHub ↗
(prompt_id: str, dynprompt: "DynamicPrompt")

Source from the content-addressed store, hash-verified

321global_progress_registry: ProgressRegistry | None = None
322
323def reset_progress_state(prompt_id: str, dynprompt: "DynamicPrompt") -> None:
324 global global_progress_registry
325
326 # Reset existing handlers if registry exists
327 if global_progress_registry is not None:
328 global_progress_registry.reset_handlers()
329
330 # Create new registry
331 global_progress_registry = ProgressRegistry(prompt_id, dynprompt)
332
333
334def add_progress_handler(handler: ProgressHandler) -> None:

Callers 1

execute_asyncMethod · 0.90

Calls 2

reset_handlersMethod · 0.95
ProgressRegistryClass · 0.85

Tested by

no test coverage detected