MCPcopy
hub / github.com/Comfy-Org/ComfyUI-Manager / done_count

Method done_count

comfyui_manager/glob/manager_server.py:449–456  ·  view source on GitHub ↗

Get the number of completed tasks in history. Returns: int: Number of tasks that have been completed and are stored in history. Returns 0 if history_tasks is None (defensive programming).

(self)

Source from the content-addressed store, hash-verified

447 return {}
448
449 def done_count(self) -> int:
450 """Get the number of completed tasks in history.
451
452 Returns:
453 int: Number of tasks that have been completed and are stored in history.
454 Returns 0 if history_tasks is None (defensive programming).
455 """
456 return len(self.history_tasks) if self.history_tasks is not None else 0
457
458 def total_count(self) -> int:
459 """Get the total number of tasks currently in the system (pending + running).

Callers 2

task_workerFunction · 0.45
queue_countFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected