Return the module-level TaskExecutor singleton.
()
| 171 | |
| 172 | |
| 173 | def get_executor() -> TaskExecutor: |
| 174 | """Return the module-level TaskExecutor singleton.""" |
| 175 | global _executor |
| 176 | if _executor is None: |
| 177 | from core.state import get_state_store |
| 178 | from core.daemon_config import get_config |
| 179 | _executor = TaskExecutor(get_state_store(), get_config()) |
| 180 | return _executor |
| 181 | |
| 182 | |
| 183 | def reset_executor(): |
nothing calls this directly
no test coverage detected