# Schedule

ScheduleService creates and manages schedules.

`komrad.schedule.v1.ScheduleService`

-   [`list_schedules`](https://komrad.dev/latest/api/schedule/list-schedules.md)
    
    List schedules, most recently updated first, each with its latest run.
    
-   [`get_schedule`](https://komrad.dev/latest/api/schedule/get-schedule.md)
    
    Get one schedule by id, with its prompt in full.
    
-   [`list_schedule_runs`](https://komrad.dev/latest/api/schedule/list-schedule-runs.md)
    
    List a live or archived schedule's newest runs, newest first, each with its state and why it was skipped or failed.
    
-   [`create_schedule`](https://komrad.dev/latest/api/schedule/create-schedule.md)
    
    Create a schedule that, each time its cron expression matches, creates a task in \`workflow\_id\` or mails the prompt to \`orchestrator\_agent\_id\`.
    
-   [`update_schedule`](https://komrad.dev/latest/api/schedule/update-schedule.md)
    
    Replace every field of a schedule.
    
-   [`set_schedule_enabled`](https://komrad.dev/latest/api/schedule/set-schedule-enabled.md)
    
    Enable or disable a schedule.
    
-   [`archive_schedule`](https://komrad.dev/latest/api/schedule/archive-schedule.md)
    
    Archive a schedule, keeping its record.
    
-   [`restore_schedule`](https://komrad.dev/latest/api/schedule/restore-schedule.md)
    
    Restore an archived schedule, enabled or disabled as it was.
    
-   [`delete_schedule`](https://komrad.dev/latest/api/schedule/delete-schedule.md)
    
    Delete an archived schedule for good, with its runs.
