mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-04-28 11:40:47 +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
|
|
@ -48,6 +48,9 @@ class SchedulerTaskUpdate(ApiHandler):
|
|||
if "attachments" in input:
|
||||
update_params["attachments"] = input.get("attachments", [])
|
||||
|
||||
if "project_name" in input or "project_color" in input:
|
||||
return {"error": "Project changes are not allowed"}
|
||||
|
||||
# Update schedule if this is a scheduled task and schedule is provided
|
||||
if isinstance(task, ScheduledTask) and "schedule" in input:
|
||||
schedule_data = input.get("schedule", {})
|
||||
|
|
@ -85,5 +88,6 @@ class SchedulerTaskUpdate(ApiHandler):
|
|||
task_dict = serialize_task(updated_task)
|
||||
|
||||
return {
|
||||
"ok": True,
|
||||
"task": task_dict
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue