Schedules: State Store tables and RPCs for schedules and runs #59

Closed
opened 2026-10-27 13:34:47 +00:00 by sam · 0 comments
Owner

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

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_
sam added the hightask labels 2026-10-27 13:34:47 +00:00
sam self-assigned this 2026-10-27 13:34:47 +00:00
sam closed this issue 2026-10-27 13:34:47 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: sam/archie#59