Repository navigation
eNotify waker 迁移 · 切换:删 [triggers]、单一由 waker 驱动 - #161
Merged
todosdev[bot] merged 1 commit intoOct 29, 2026
Merged
Conversation
Set `[triggers] crons = []` so the deployed Cron Trigger is actually cleared (deleting the section leaves it running), and make the deploy interlock test for a non-empty crons list instead of the section header. Checkpoint: kwgfdL9Jb-ddBC8gHsLW1
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.
Summary
hourly-reminder-sweep, with the native Cron Trigger turned off via[triggers] crons = []inworker/wrangler.toml.[triggers]section or commenting outcronsleaves it running, because wrangler only PUTs/scheduleswhencronsis defined. The CI interlock is retargeted to this mechanism so a deploy still can never ship with neither a cron nor the waker key.Changes
worker/wrangler.toml[triggers] crons = ["0 * * * *"]→crons = []; the section stays (with a comment explaining why the empty array, not deletion, is the switch). Rollback = restore the cron expression..github/workflows/deploy.yml[triggers]body and decides on a non-emptycronslist (comments inside the array are stripped) instead of merely detecting the section header. It still fails the deploy whenWAKER_SIGNING_KEYis unset and no cron is configured.native cron: configured|disabledand drops the misleading "(native cron only)" label.Docs (
README.md,README.en.md,CLAUDE.md)WAKER_SIGNING_KEYrequired; added the Cloudflare/wrangler rationale forcrons = [].cronsback to["0 * * * *"]) / disable-callbacks steps.CLAUDE.mdnotes the nativescheduled()entry stays in code for the rollback path only.Testing
pnpm test: 23 files, 301 tests passed.pnpm format:check(157 files),pnpm typecheck,pnpm buildpass.pnpm lintreports no errors; the 2 advisories are pre-existing and in untouched files (biome schema 2.5.0 vs CLI 2.5.15, unused import inworker/src/routes/items.ts).wrangler deploy --dry-runsucceeds and wrangler's own config resolution reportstriggers = {"crons":[]}.deploy.ymlacross 6 cases: empty crons + key → deploy; empty crons + no key → blocked (exit 1);crons = ["0 * * * *"]+ no key → deploy (rollback state); no[triggers]+ no key → blocked; comment-only array + no key → blocked; comment-only array + key → deploy.executed: true.