mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-04-30 20:50:21 +00:00
Squashed commit of the following:
commitec3438a00bAuthor: Rafael Uzarowski <uzarowski.rafael@proton.me> Date: Thu Nov 13 00:30:22 2025 +0100 fix: task chats payload fix in poll() commitb7f9afdb1dAuthor: Rafael Uzarowski <uzarowski.rafael@proton.me> Date: Thu Nov 13 00:20:24 2025 +0100 feat: Project Scheduler Tasks
This commit is contained in:
parent
e6eae9c7dd
commit
e9b368df15
10 changed files with 381 additions and 66 deletions
|
|
@ -22,8 +22,8 @@ class SchedulerTasksList(ApiHandler):
|
|||
# Use the scheduler's convenience method for task serialization
|
||||
tasks_list = scheduler.serialize_all_tasks()
|
||||
|
||||
return {"tasks": tasks_list}
|
||||
return {"ok": True, "tasks": tasks_list}
|
||||
|
||||
except Exception as e:
|
||||
PrintStyle.error(f"Failed to list tasks: {str(e)} {traceback.format_exc()}")
|
||||
return {"error": f"Failed to list tasks: {str(e)} {traceback.format_exc()}", "tasks": []}
|
||||
return {"ok": False, "error": f"Failed to list tasks: {str(e)} {traceback.format_exc()}", "tasks": []}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue