获取任务管理统计信息
(self)
| 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 | # 全局任务管理器实例 |
nothing calls this directly
no outgoing calls
no test coverage detected