[DO] Document Durable Object shutdown hook - #32877
iglesiasbrandon wants to merge 6 commits into
Conversation
|
This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:
|
|
***@***.***
czw., 20 sie 2026, 02:47 użytkownik github-actions[bot] <
***@***.***> napisał:
… *github-actions[bot]* left a comment (cloudflare/cloudflare-docs#32877)
<#32877 (comment)>
*Preview URL:* https://d0a2c86e.preview.developers.cloudflare.com
*Preview Branch URL:*
https://docs-durable-objects-pre-shutdown-hook.preview.developers.cloudflare.com
*Files with changes (up to 15)*
Original Link Updated Link
https://developers.cloudflare.com/durable-objects/api/base/
https://docs-durable-objects-pre-shutdown-hook.preview.developers.cloudflare.com/durable-objects/api/base/
https://developers.cloudflare.com/durable-objects/best-practices/rules-of-durable-objects/
https://docs-durable-objects-pre-shutdown-hook.preview.developers.cloudflare.com/durable-objects/best-practices/rules-of-durable-objects/
https://developers.cloudflare.com/durable-objects/concepts/durable-object-lifecycle/
https://docs-durable-objects-pre-shutdown-hook.preview.developers.cloudflare.com/durable-objects/concepts/durable-object-lifecycle/
—
Reply to this email directly, view it on GitHub
<#32877?email_source=notifications&email_token=CH5XMQ63R7CXVMRPGIGPBFL5KZDB7A5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMZUHE3TQNRZGQY2M4TFMFZW63VKON2WE43DOJUWEZLEUVSXMZLOOSWGM33PORSXEX3DNRUWG2Y#issuecomment-5349786941>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/CH5XMQ5IPZSBNDKCLS4AWAT5KZDB7AVCNFSNUABFKJSXA33TNF2G64TZHMZDSMRWG4ZTIMRUHNEXG43VMU5TKMJZHAZTSMZUGAZ2C5QC>
.
Triage notifications, keep track of coding agent tasks and review pull
requests on the go with GitHub Mobile for iOS
<https://github.com/notifications/mobile/ios/CH5XMQZNKUUBXZYHBVNV5B35KZDB7A5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMZUHE3TQNRZGQY2M4TFMFZW63VKON2WE43DOJUWEZLEUVSXMZLOOSVGM33PORSXEX3JN5ZQ>
and Android
<https://github.com/notifications/mobile/android/CH5XMQZPTIPH4OYER5SU6A35KZDB7A5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMZUHE3TQNRZGQY2M4TFMFZW63VKON2WE43DOJUWEZLEUVSXMZLOOSXGM33PORSXEX3BNZSHE33JMQ>.
Download it today!
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
vy-ton
left a comment
There was a problem hiding this comment.
@iglesiasbrandon We should also think about how new handler is reflected in observability like tracing. Same as a span for DO constructor I would want a span if preShutdown runs
| | --- | --- | | ||
| | Lack of requests to an object (eviction due to inactivity) | Yes | | ||
| | New Worker deployment with a code update | Yes | | ||
| | Cloudflare updates to the Workers runtime system | No | |
There was a problem hiding this comment.
Do we ever plan to support this? Or longer runtime drain period is the answer here?
There was a problem hiding this comment.
its something we are considering
🚀 Deploying Preview to Cloudflare 🚀Preview URL: https://docs-durable-objects-pre-shutdown-hook.previews.developers.cloudflare.com (commit b999bf9)This URL reflects your latest Preview deploymentPreview Deployments by commit
|
…jects-pre-shutdown-hook
|
@iglesiasbrandon This draft pull request has had no activity for 3 days. It will close after 7 days of inactivity. Transition to ready for review if ready. A codeowner can comment |
Co-authored-by: Vy Ton <vy@cloudflare.com>
|
/draft-never-stale |
Summary
Documents the Beta Durable Objects
[shutdown](info)hook using theshutdownwell-known symbol exported fromcloudflare:workers.Adds the API contract, lifecycle behavior, best-practice checkpointing guidance, RPC behavior, and tracing span attributes for shutdown invocations.
Documentation checklist