Cloudflare Workers Cron Triggers

Test a Cloudflare Workers cron trigger.

Cron Triggers follow Cloudflare’s own rules, and the biggest one differs from Linux: weekdays are numbered 1-7 with 1 = Sunday. The tester applies the rules in Cloudflare’s documentation, shows the next runs in UTC and builds the wrangler configuration.

UTC (fixed)
How Cloudflare Workers Cron Triggers differs from Linux cron. Day of week: 1-7 with 1 = Sunday. Time zone: UTC. Compare Cloudflare Workers Cron Triggers with Linux cron, side by side →
The rules

How Cloudflare Workers cron reads a schedule.

Fields5: minute, hour, day of month, month, day of week.
Day of week1-7, 1 = Sunday, 7 = Saturday, or three-letter names (MON, fri). Cloudflare suggests names to avoid confusion.
ExtrasL and W in day of month (LW = last weekday); L and # in day of week (6L = last Friday).
Time zoneAlways UTC.
Limits5 Cron Triggers per account on Workers Free, 250 on Workers Paid.
PropagationA new or changed trigger can take up to 15 minutes to reach Cloudflare’s network; runs in that time can be missed.

Cloudflare’s scheduler cannot be run locally, so the tester applies the rules in Cloudflare’s documentation, listed below. Last checked 18 November 2026.

The weekday trap: 1-5 is Sunday to Thursday

On Linux and most cloud schedulers, 0 9 * * 1-5 means 09:00 Monday to Friday. Cloudflare numbers weekdays from 1 = Sunday, so the same line runs Sunday to Thursday. Cloudflare’s own example writes weekdays as mon-fri or 2-6. The tester flags numeric weekdays and shows what they mean on Cloudflare.

Last day, last weekday, nth weekday

Cloudflare documents 59 23 LW * * (23:59 on the last weekday of the month) and 0 18 * * 6L or friL (18:00 on the last Friday). # selects the nth weekday, for example 0 10 * * 2#1 for the first Monday. Cloudflare does not document how a day of the month and a day of the week combine when both are set, so the tester warns and shows the Unix-cron (either) reading.

Reading the trigger in your Worker

A Worker can have several Cron Triggers. The scheduled(controller, env, ctx) handler receives controller.cron, the expression that fired, and controller.scheduledTime, so one handler can branch on the schedule.

Sources: Cloudflare: Cron Triggers · Cloudflare: Scheduled handler · Cloudflare: Workers limits

Related: Daylight saving time checker · Crontab file checker · All platform tools

Common questions

Cloudflare Workers cron FAQs.

Sunday is 1. Cloudflare numbers weekdays 1-7 from Sunday to Saturday, unlike Unix cron where Sunday is 0. Three-letter names such as SUN or MON avoid the confusion.

UTC. There is no time zone setting; convert your local time to UTC, and remember that the UTC equivalent of a local time changes with daylight saving time.

Cloudflare lists 5 Cron Triggers per account on Workers Free and 250 on Workers Paid.

Use LW in the day-of-month field, for example 59 23 LW * * for 23:59 UTC on the last weekday of each month.

Cloudflare says changes can take up to 15 minutes to propagate, and scheduled runs can be missed until then. Also check the weekday numbering: 1 is Sunday.