Schedule a Worker with a Cron Trigger
queues & cron
// what it does
Cron Triggers invoke your Worker's scheduled() handler on a schedule. Add the crons array under triggers in wrangler.jsonc and push it live with wrangler deploy — standard cron syntax, multiple entries allowed. Common for cache warming, cleanup jobs, and periodic D1 or R2 maintenance.
// shell
$ # wrangler.jsonc: "triggers": { "crons": ["0 */6 * * *"] }$ wrangler deploy// gotcha
Cron schedules are always UTC, never your local timezone. Crons only fire on the deployed Worker — wrangler dev never triggers them on a timer (use --test-scheduled instead).