MCPcopy Create free account
hub / github.com/agent0ai/agent-zero / _start_task

Method _start_task

helpers/defer.py:104–107  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

102 self.kill()
103
104 def _start_task(self):
105 self._future = self.event_loop_thread.run_coroutine(self._run())
106 if self._future:
107 self._future.add_done_callback(self._on_task_done)
108
109 def _on_task_done(self, _future: Future):
110 # Ensure child background tasks are always cleaned up once the parent finishes

Callers 2

start_taskMethod · 0.95
restartMethod · 0.95

Calls 2

_runMethod · 0.95
run_coroutineMethod · 0.80

Tested by

no test coverage detected