| 27 | // --------------------------------------------------------------------------- |
| 28 | |
| 29 | interface ManagedJob { |
| 30 | config: ScheduledJobConfig; |
| 31 | /** null when the job is one-time or disabled (no cron task created) */ |
| 32 | task: ReturnType<typeof cron.schedule> | null; |
| 33 | lastRunAt?: string; |
| 34 | lastResult?: string; |
| 35 | lastError?: string; |
| 36 | /** true while the agent is executing the prompt */ |
| 37 | running: boolean; |
| 38 | /** true while notification delivery failed on the last run */ |
| 39 | notifyFailed: boolean; |
| 40 | } |
| 41 | |
| 42 | export interface JobStatus { |
| 43 | id: string; |
nothing calls this directly
no outgoing calls
no test coverage detected