Repository navigation
Restore check: labels say Sunday, as deployed (schedule unchanged) - #316
Merged
Merged
Conversation
Cloudflare's cron parser counts the weekday field 1 = Sunday (https://developers.cloudflare.com/workers/configuration/cron-triggers/), so '30 4 * * 1' has always fired the weekly restore check on Sunday 04:30 UTC, not Monday as comments and docs said. Verified live 2026-11-22: the production trigger reads "At 04:30 AM on Sunday" and the check ran on Sundays Nov 1, 8, 15 and 22. The expression is intentionally unchanged, so this changes no schedule and no live trigger. Comments, README, the OpenAPI description of GET /v1/admin/backups, the ops runbook and one test title now say Sunday / weekly check. No behavior, configuration, migration or dependency change.
Contributor
Author
|
@codex review |
|
To use Codex here, create a Codex account and connect to github. |
Member
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Keep it up! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Docs/labels only: the weekly restore check has always run on Sunday; comments and docs said Monday. The cron expression is intentionally unchanged, so no schedule and no live trigger moves.
Root cause: the expression
30 4 * * 1was written intending standard-cron Monday, but Cloudflare's cron parser counts the weekday field from 1 = Sunday. Documented in Cloudflare's own Cron Triggers reference (https://developers.cloudflare.com/workers/configuration/cron-triggers/, "Supported cron expressions"):Verified live 2026-11-22 against production:
prod/checks/2026-11-*.jsonin R2; the 2026-11-22 check passed: 38 tables, 80,680 rows, no problems).docs/DEPENDABOT-UPDATE-LIFECYCLE.md(2026-11-06 follow-ups); that note now records this fix as prepared-in-branch, not deployed.Changes (8 files, labels/comments/docs only):
platform/wrangler.toml: comment Monday→Sunday + one-line dialect note. All threecrons = [...]arrays are byte-identical — the diff touches zero cron values.platform/src/backup.ts: header comment, a note aboveRESTORE_CHECK_CRON(value unchanged), "Monday check" → "weekly check runs on Sunday".platform/src/openapi.ts:GET /v1/admin/backupsdescription Monday→Sunday (the only user-visible text that changes on the next deploy — wording only, no API shape change).platform/README.md,platform/docs/ops/BACKUP-RESTORE.md: schedule table, "Verify the weekly check" section (adds the dialect note and a "do not 'fix' it to Monday without a deploy decision" warning), three phrasings, staging checklist line.platform/test/backup.test.ts: one test title (assertions unchanged).platform/CHANGELOG.md: new entry per repo convention ("Not yet deployed").docs/DEPENDABOT-UPDATE-LIFECYCLE.md: the 2026-11-06 open note marked as fixed-in-branch with the live verification.Validation:
npx tsc --noEmitclean; full suitenpx vitest run= 82 files, 944 passed / 3 skipped (same as current main).No behavior, schedule, configuration, migration or dependency change. Backup cadence, retention and the 8-day staleness threshold are untouched. Cloudflare is not changed by this PR; on the next deploy
wranglerwill sync the same expression that is already live.