Schedules: State Store tables and RPCs for schedules and runs #59
Notifications
Due Date
No due date set.
Blocks
Reference: sam/archie#59
Reference in new issue
Block a user
Move schedules out of the control-plane schedules resource into State Store tables: schedules (id, owner reference, name, enabled, timing spec, built-in flag, next_run, created/updated) and schedule_runs (schedule id, scheduled_for, started, finished, result, error, task reference). Runs are claimed by unique (schedule id, scheduled_for) so a crash or a second archied cannot fire twice. Retention: 7 days or 100 runs per schedule, whichever is sooner, both instance settings. Delete the schedules control-plane resource kind and its settings page.
Acceptance criteria
CRUD, run-claim and run-list RPCs in proto/state; duplicate claim is rejected at the SQL level; retention prunes by both limits; schedules resource kind gone.
Close reason
Closed
Imported from beads
archie-core-4d2cb· GitHub #1867 · type task · priority P1 · created 2026-10-25 · closed 2026-10-25