mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-04-29 04:00:26 +00:00
additional scheduler improvements
This commit is contained in:
parent
47a3dee30f
commit
4849edf9d4
4 changed files with 9 additions and 4 deletions
|
|
@ -622,6 +622,7 @@ class TaskScheduler:
|
|||
|
||||
async def add_task(self, task: Union[ScheduledTask, AdHocTask, PlannedTask]) -> "TaskScheduler":
|
||||
await self._tasks.add_task(task)
|
||||
ctx = await self._get_chat_context(task) # invoke context creation
|
||||
return self
|
||||
|
||||
async def remove_task_by_uuid(self, task_uuid: str) -> "TaskScheduler":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue