Cloudflare · infra · fg-0581

Durable Object keeps running old code for up to 5 minutes after wrangler deploy

If you see A Durable Object still returns old behavior right after a deploy, the cause and the fix for Cloudflare are below, last verified 2026-10-30.

Verified Oct 2026trust 50/100
Symptom
A Durable Object still returns old behavior right after a deployTooling that calls a Durable Object immediately after deploying hits the previous code version
Cause
Durable Objects now defer code updates by default. An active object can keep its current code for up to 300 seconds while it waits to hibernate, instead of resetting immediately. Deferral is best effort, so the object can still reset earlier.
Fix
For a deployment that needs the new code at once, use immediate mode. To change the default window, set code_update_strategy with a max_delay in seconds (0 to 86400) in the Wrangler config.
Apply
npx wrangler versions deploy <VERSION_ID>@100% --durable-objects-code-update-mode immediate
Affected
All Durable Objects deployments as of 2026-10-30
Sources

Last verified 2026-10-30 · Confirmed by 0 builders

Related traps

Have your agent know this before it fails

$ /plugin marketplace add getfootgun/footgun
$ /plugin install footgun@footgun