MCPcopy Create free account
hub / github.com/Ishabdullah/Codey-v2 / tasks_running

Method tasks_running

core/observability.py:86–94  ·  view source on GitHub ↗

Get number of running tasks.

(self)

Source from the content-addressed store, hash-verified

84
85 @property
86 def tasks_running(self) -> int:
87 """Get number of running tasks."""
88 try:
89 from core.planner_v2 import get_planner
90 planner = get_planner()
91 return len(planner.get_running_tasks())
92 except:
93 tasks = self.state_store.get_tasks_by_status("running")
94 return len(tasks)
95
96 @property
97 def model_active(self) -> Optional[str]:

Callers

nothing calls this directly

Calls 3

get_plannerFunction · 0.90
get_tasks_by_statusMethod · 0.80
get_running_tasksMethod · 0.45

Tested by

no test coverage detected