Skip to content

feat(schedules): register no workflows, so the Worker never fires - #13

Merged
jshvn merged 1 commit into
mainfrom
josh/no-schedules
Sep 25, 2026
Merged

jshvn merged 1 commit into
mainfrom
josh/no-schedules

Conversation

@jshvn

@jshvn jshvn commented Sep 25, 2026

Copy link
Copy Markdown
Owner

What

Removes every schedule, so the Worker triggers nothing. The repo and the deployed Worker both stay.

  • schedules/apartments.ts and schedules/terraform.ts are deleted, and the registry in schedules/index.ts is empty. Both repos are now scheduled by jshvn/dispatch.
  • wrangler.jsonc gets "crons": [], written by task crons. wrangler deploys triggers.crons with if (crons), and an empty array is truthy, so the deploy PUTs an empty list to /workers/scripts/dispatch/schedules. That replaces the two live triggers (17 5 * * *, 2 */4 * * *) with none.
  • The three Dispatch.run tests that used real targets now claim fixture targets through the mocked selectTargets. The instance-id legality test walks every expression in SLOTS rather than the configured crons, which are now empty.
  • README and CLAUDE.md say that nothing is registered.

The Worker's secrets and the App's key stay as they are.

Test plan

  • task check: typecheck, format, 46 tests, dry-run deploy
  • task targets prints no targets
  • After merge, the deploy run succeeds and the dashboard shows no cron triggers on dispatch (Workers & Pages → dispatch → Settings → Trigger events)

jshvn/apartments and jshvn/terraform move to jshvn/dispatch. With the registry empty,
task crons writes an empty triggers.crons, and the deploy's PUT to the script's schedules
replaces the two live cron triggers with none. The Worker stays deployed with its secrets
and fires nothing.

The Dispatch.run tests that read the real registry now claim targets of their own.
@jshvn
jshvn merged commit e59be7c into main Sep 25, 2026
1 check passed
@jshvn
jshvn deleted the josh/no-schedules branch September 25, 2026 04:47
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