Skip to content
Cloudflare Workers100% Client-Side

Cron Expression for Every Hour (Cloudflare Workers)

0 * * * *Every hour

The Cloudflare Workers cron expression "0 * * * *" runs a task every hour (cloudflare workers). Preview the next run times in your timezone, read the plain-English translation, and copy ready-to-paste snippets for crontab, Node.js, GitHub Actions, and AWS EventBridge.

Live playground

  • Min0
  • Hour*
  • DOM*
  • Month*
  • DOW*

Every hour

Cloudflare Workers · evaluated in UTC

24-hour view

Hover a highlighted hour for precise timestamps. Showing the next 50 executions.

Upcoming runs

Timezone

Runs are simulated in the selected IANA timezone. Auto-detected from your browser on first load.

Field breakdown

How each field of 0 * * * * is interpreted in the Cloudflare Workers format.

Field breakdown of 0 * * * *
FieldValueAllowedStatus
Minute00-59Valid
Hour*0-23Valid
Day of Month*1-31Valid
Month*1-12 or JAN-DECValid
Day of Week*0-7 or SUN-SAT (0 and 7 = SUN)Valid

Use “0 * * * *” in real code

Copy-paste configurations for the most common schedulers, converted to each platform’s dialect where needed.

import cron from 'node-cron';

cron.schedule('0 * * * *', () => {
  console.log('Running task...');
});

Running “0 * * * *” in production

Workers Cron Triggers: plain five-field cron on the edge

0 * * * * is the hourly Cron Trigger for a Cloudflare Worker, and the dialect is refreshingly plain: standard five-field Unix cron, no seconds field, no ? placeholders, no year field — written in the wrangler.toml (or wrangler.jsonc) crons array: crons = ["0 * * * *"]. The Worker's scheduled() handler receives each fire as a ScheduledEvent (with event.cron carrying the matching expression when multiple schedules share a Worker), runs on Workers' runtime with its CPU limits, and returns; failures surface in Workers observability and can retry per the handler's configured behavior. It is the tightest path from 'a cron expression' to 'code that runs on it' — no server, no crontab file, no daemon.

Two platform semantics matter before relying on it. UTC only: the trigger evaluates the expression in UTC with no per-Worker timezone, so 'hourly' is UTC-hourly (harmless here, decisive for business-hours schedules — Cloudflare's answer for local-clock behavior is application logic or an external scheduler). Single-location execution: a scheduled invocation does NOT fan out to every data center — each fire executes in one location (by default chosen near the origin or via the handler's geo hints / scheduled event's preferred region), so the job runs once globally per slot, which is exactly what most maintenance work wants and a surprise for teams assuming edge-fanout semantics.

The hourly edge workload: what belongs on it, and the limits

Hourly Workers cron is the home of edge-native maintenance: KV namespace cleanup (expiring stale keys and compacting metadata), cache purge and pre-warm passes (invalidating stale assets so the next request regenerates), feed and upstream polling written as fetch-then-store into KV, R2, or D1, certificate and config refresh checks, and hourly usage metering rolls. The workloads share a shape: small, stateless, network-bound — well inside Workers' CPU and memory ceilings — with state delegated to KV/R2/D1 rather than local disk. Jobs needing long durations or heavy compute outgrow the platform: queue consumers or scheduled containers are the escalation paths, not larger cron entries.

Limits worth knowing before design: a Worker supports up to five cron triggers (multiple schedules per Worker are the free-tier-friendly pattern — one Worker, several cadences, event.cron disambiguating), and per-schedule overlap behavior is best-effort rather than a hard lock — a handler that might exceed its interval should guard itself (an idempotency key in KV with TTL is the idiomatic edge lock, atomic and globally consistent). GitHub Actions' inactivity-disable has no analog here — schedules persist through quiet periods — which makes Workers cron the dependable choice for low-frequency edge chores. The simulator above validates the five fields verbatim; the wrapper is the wrangler array entry and the scheduled() handler.

Frequently asked questions

What does the cron expression "0 * * * *" mean?

"0 * * * *" is a Cloudflare Workers expression that means: Every hour. It contains 5 fields — Minute (0), Hour (*), Day of Month (*), Month (*), Day of Week (*) — and works in any scheduler that accepts the Cloudflare Workers format.

How does "0 * * * *" behave in UTC versus local time?

Cloudflare Workers Cron Triggers always evaluate in UTC, no matter where your worker executes. Convert your desired local time to UTC before configuring the trigger, or compute the offset inside the worker itself.

Is "0 * * * *" valid outside Cloudflare Workers?

Not directly. Standard Unix cron expects 5 fields without '?', Quartz expects a leading seconds field, AWS EventBridge appends a year and requires '?' in one of the two day fields, and Salesforce System.schedule needs a leading seconds field with 1-based weekdays and an optional trailing year. The conversion snippets below show the equivalent expression for each platform.

Does a Cloudflare Workers cron trigger run in every data center?

No — each scheduled fire executes in a single location, not edge-fanout: the invocation lands in one Worker instance (location influenced by the platform's scheduling and any handler hints), runs the scheduled() handler once, and the rest of the network is untouched. That is the desired semantics for maintenance work (one global run per slot) and the wrong assumption for work that wanted per-region execution — that pattern needs explicit fanout (e.g., writing to a queue or using Durable Objects per region), not more cron entries.

How many cron schedules can one Cloudflare Worker have?

Up to five Cron Triggers per Worker — the crons array in wrangler.toml holds up to five expressions, each firing the same scheduled() handler, which disambiguates via event.cron (the literal expression that fired). One Worker with five schedules (say */5, hourly, daily, weekly, monthly entries) is the idiomatic free-plan pattern; each additional Worker gets its own five. The expressions are standard five-field cron evaluated in UTC.

About the “0 * * * *” schedule

0 * * * * is the Cloudflare Workers way to say “Every hour”. The simulator above evaluates it entirely in your browser — the timeline, the next-run table, and the timezone switcher all run client-side, so you can paste production schedules without them ever leaving your machine.

Every page in this directory follows the same structure: a plain-English translation, a per-field breakdown, platform-specific snippets, and a timezone-aware simulator. Move between the related intervals below to compare dialects, and validate one final time in the simulator with your own timezone before shipping.

Adjacent intervals and the same schedules expressed for other platforms.