MCPcopy Create free account
hub / github.com/su-kaka/gcli2api / get_stats

Method get_stats

src/task_manager.py:118–124  ·  view source on GitHub ↗

获取任务管理统计信息

(self)

Source from the content-addressed store, hash-verified

116 return self._shutdown_event.is_set()
117
118 def get_stats(self) -> Dict[str, int]:
119 """获取任务管理统计信息"""
120 return {
121 "active_tasks": len(self._tasks),
122 "registered_resources": len(self._resources),
123 "is_shutdown": self.is_shutdown,
124 }
125
126
127# 全局任务管理器实例

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected