Free ops runbook · Cloudflare Workers

Workers compatibility_date: the deploy that changed behaviour without a code change

Workers runtime behaviour is pinned to compatibility_date. Move the date and the same code can change how it handles requests, streams, subrequests or scheduled events. This page is the read-only check and the safe rollback.

The date is behaviour

It is not a version label. Two deploys with the same code and different dates can behave differently.

Local vs deployed

wrangler dev uses the date in the config unless you override it. A local pass does not prove the deployed date.

Pin before you move

Pin the date in wrangler.toml, deploy, verify, then move one step at a time.

Rollback is a date

You can revert the date or roll back the deployment; both are faster than rewriting the handler.

Detect

What date is actually running?

CommandWhat it shows
grep compatibility_date wrangler.tomlThe date the next deploy will use.
npx wrangler deployments listWhich deployments are live and when they were created.
npx wrangler tailRuntime errors and logs from the deployed worker, not local.
npx wrangler dev --compatibility-date=<date>Reproduce a candidate date locally before moving production.
Failure modes

Where a date move breaks things

Streaming changes

Response buffering or cancellation behaviour differs; SSE clients see chunks arrive late or the stream close early.

Subrequest limits

A handler that used to pass now hits a limit or a different error shape.

Scheduled/queue events

Cron or queue consumers inherit the new behaviour and fail outside the request path.

Silent local pass

Wrangler dev used a different date than the deploy; the bug only exists in production.

Keep going

This page is free. The paid runbooks cover the operational failures around it, with detection commands, five failure modes and a migration checklist.