Developer Platform von Cloudflare
Durable Objects: Laufende Arbeit auch ohne verbundenen Client
Durable Objects bleiben nun auch ohne verbundenen Client aktiv, solange etwa Service-Binding-Anfragen, RPC- oder fetch()-Aufrufe, waitUntil()-Promises oder Timer ausstehen, standardmäßig ab Compatibility Date 2026-10-01.
Durable Objects remain active while handling a request from a connected client. This change applies when no client is connected, such as when an agent continues a submitted job after its client disconnects.
This behavior is the default for Workers with a compatibility date of 2026-10-01 or later. To use it with an earlier date, add the durable_object_io_tasks_prevent_eviction compatibility flag. To opt out, add the durable_object_io_tasks_do_not_prevent_eviction flag.
Pending service binding requests now keep Durable Objects running while they wait for a response. Pending calls to another Durable Object through remote procedure call (RPC) or fetch(), as well as this.ctx.container.monitor(), now also keep the Durable Object running.
Promises passed to this.ctx.waitUntil() and pending setTimeout() and setInterval() timers also receive this protection.
Previously, Cloudflare could shut down an idle Durable Object while one of these operations remained pending without a connected client. This could stop unfinished work. …