Run scheduled tasks through workflows

This commit is contained in:
Ian Gulliver
2026-10-22 13:38:40 -07:00
parent 9fca82abaa
commit 2524e1cb1f
9 changed files with 456 additions and 446 deletions
+6 -8
View File
@@ -2232,7 +2232,7 @@ components:
Schedule:
type: object
required: [id, project_id, owner, title, every, weekdays, hour, minute, day_of_month, prompt, model, workflow, next_run]
required: [id, project_id, owner, title, every, weekdays, hour, minute, day_of_month, prompt, workflow, next_run]
properties:
id: { type: string }
project_id: { type: string }
@@ -2243,14 +2243,13 @@ components:
hour: { type: integer, description: "0 to 23, in the server's local time; 0 for an hourly schedule." }
minute: { type: integer, description: "0 to 59; for an hourly schedule, the minute past each hour." }
day_of_month: { type: integer, description: "1 to 31 for a monthly schedule, which runs on the month's last day in shorter months; 0 otherwise." }
prompt: { type: string, description: "The task's first message, or with workflow, the run's brief." }
model: { type: string, description: "The task's agent's model; empty with workflow." }
workflow: { type: string, description: "The workflow each run starts, by name; empty for a single agent." }
prompt: { type: string, description: "The run's brief, given to every stage; may be empty." }
workflow: { type: string, description: "The workflow each run starts, by name." }
next_run: { type: string, format: date-time }
ScheduleSave:
type: object
required: [title, every, hour, minute]
required: [title, every, hour, minute, workflow]
properties:
title: { type: string, minLength: 1 }
every: { $ref: "#/components/schemas/ScheduleEvery" }
@@ -2258,9 +2257,8 @@ components:
hour: { type: integer, minimum: 0, maximum: 23 }
minute: { type: integer, minimum: 0, maximum: 59 }
day_of_month: { type: integer, minimum: 1, maximum: 31, description: "Required, and only allowed, for a monthly schedule." }
prompt: { type: string, description: "Required without workflow." }
model: { type: string, description: "Required without workflow, refused with it." }
workflow: { type: string }
prompt: { type: string }
workflow: { type: string, minLength: 1 }
Permission:
type: object