Skip to content

feat: pause and resume a schedule - #21

Merged
TheGreatAxios merged 1 commit into
mainfrom
cl-9617-pause-resume
Sep 30, 2026
Merged

TheGreatAxios merged 1 commit into
mainfrom
cl-9617-pause-resume

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Contributor

Adds an idempotent enabled column (default true) to the schedule table.
POST /:id/pause and POST /:id/resume (grant cron-schedule:<id> manage) return { schedule }; 404 not_found outside the caller's tenant.
The ticker skips paused rows. Resume sets lastFiredAt to now, so the next run is the next matching minute and paused minutes do not fire.
Real-Postgres e2e covers pause, ticker skip, resume and 404; README routes updated.

Resolves CL-9617

Adds an enabled column, POST /:id/pause and POST /:id/resume. The ticker skips paused rows; resume restarts the schedule's clock at now.
@TheGreatAxios
TheGreatAxios merged commit 1b1e248 into main Sep 30, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant