Skip to content

[wrangler] Add Durable Objects hibernation timeout option - #15658

Merged
cjol merged 2 commits into
cloudflare:mainfrom
jqmmes:joaquim/do-hibernation-timeout
Sep 25, 2026
Merged

cjol merged 2 commits into
cloudflare:mainfrom
jqmmes:joaquim/do-hibernation-timeout

Conversation

@jqmmes

@jqmmes jqmmes commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Adds --durable-objects-code-update-mode to wrangler deploy, wrangler versions deploy, and wrangler rollback. It accepts immediate or deferred , defaulting to a 5-minute deferred update with a maximum delay of 24 hours.

The strategy is forwarded as code_update_strategy through version deployments and multipart script uploads.


@changeset-bot

changeset-bot Bot commented Sep 15, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: ab2e0c2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 10 packages
Name Type
wrangler Minor
@cloudflare/deploy-helpers Minor
@cloudflare/workers-utils Minor
@cloudflare/vite-plugin Patch
@cloudflare/vitest-plugin Patch
@cloudflare/remote-bindings Patch
@cloudflare/autoconfig Patch
@cloudflare/cli-shared-helpers Patch
@cloudflare/containers-shared Patch
@cloudflare/workers-auth Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-project-automation github-project-automation Bot moved this to Untriaged in workers-sdk Sep 15, 2026
@jqmmes jqmmes changed the title Add Durable Objects hibernation timeout option [wrangler] Add Durable Objects hibernation timeout option Sep 15, 2026
@pkg-pr-new

pkg-pr-new Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
@cloudflare/autoconfig

npm i https://pkg.pr.new/@cloudflare/autoconfig@15658

@cloudflare/build-output-utils

npm i https://pkg.pr.new/@cloudflare/build-output-utils@15658

@cloudflare/codemods

npm i https://pkg.pr.new/@cloudflare/codemods@15658

@cloudflare/config

npm i https://pkg.pr.new/@cloudflare/config@15658

@cloudflare/containers-shared

npm i https://pkg.pr.new/@cloudflare/containers-shared@15658

create-cloudflare

npm i https://pkg.pr.new/create-cloudflare@15658

@cloudflare/deploy-helpers

npm i https://pkg.pr.new/@cloudflare/deploy-helpers@15658

@cloudflare/kv-asset-handler

npm i https://pkg.pr.new/@cloudflare/kv-asset-handler@15658

miniflare

npm i https://pkg.pr.new/miniflare@15658

@cloudflare/pages-functions

npm i https://pkg.pr.new/@cloudflare/pages-functions@15658

@cloudflare/pages-shared

npm i https://pkg.pr.new/@cloudflare/pages-shared@15658

@cloudflare/runtime-types

npm i https://pkg.pr.new/@cloudflare/runtime-types@15658

@cloudflare/unenv-preset

npm i https://pkg.pr.new/@cloudflare/unenv-preset@15658

@cloudflare/vite-plugin

npm i https://pkg.pr.new/@cloudflare/vite-plugin@15658

@cloudflare/vitest-plugin

npm i https://pkg.pr.new/@cloudflare/vitest-plugin@15658

@cloudflare/workers-auth

npm i https://pkg.pr.new/@cloudflare/workers-auth@15658

@cloudflare/workers-editor-shared

npm i https://pkg.pr.new/@cloudflare/workers-editor-shared@15658

@cloudflare/workers-utils

npm i https://pkg.pr.new/@cloudflare/workers-utils@15658

wrangler

npm i https://pkg.pr.new/wrangler@15658

commit: ab2e0c2

@jqmmes
jqmmes force-pushed the joaquim/do-hibernation-timeout branch 4 times, most recently from db7811a to 55eb99c Compare September 17, 2026 13:59
@jqmmes
jqmmes marked this pull request as ready for review September 17, 2026 15:34
@workers-devprod
workers-devprod requested review from a team and cjol and removed request for a team September 17, 2026 15:34
@workers-devprod

workers-devprod commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Codeowners approval required for this PR:

  • ✅ @cloudflare/wrangler
Show detailed file reviewers

Comment thread .changeset/quiet-dodos-hibernate.md Outdated
Comment thread .changeset/tidy-crabs-rollback.md Outdated
Comment thread packages/workers-utils/src/types.ts Outdated
Comment thread packages/wrangler/src/__tests__/core/command-registration.test.ts Outdated
Comment thread packages/wrangler/src/__tests__/create-worker-upload-form/metadata.test.ts Outdated
@jqmmes
jqmmes force-pushed the joaquim/do-hibernation-timeout branch 4 times, most recently from a3930e5 to 3977fa5 Compare September 18, 2026 16:19
devin-ai-integration[bot]

This comment was marked as resolved.

devin-ai-integration[bot]

This comment was marked as resolved.

@jqmmes
jqmmes force-pushed the joaquim/do-hibernation-timeout branch 2 times, most recently from 1f67fe0 to ab70ee0 Compare September 21, 2026 16:06
Comment thread packages/wrangler/src/versions/deployment-args.ts
@jqmmes
jqmmes force-pushed the joaquim/do-hibernation-timeout branch from ab70ee0 to f9bf90d Compare September 21, 2026 17:44
@cjol cjol self-assigned this Sep 22, 2026

@cjol cjol left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excited to see this!

@workers-devprod workers-devprod left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codeowners reviews satisfied

@github-project-automation github-project-automation Bot moved this from Untriaged to Approved in workers-sdk Sep 22, 2026
@jqmmes
jqmmes force-pushed the joaquim/do-hibernation-timeout branch from f9bf90d to a8bf387 Compare September 22, 2026 18:40
@workers-devprod

Copy link
Copy Markdown
Contributor

Codeowners approval required for this PR:

  • ✅ @cloudflare/wrangler
Show detailed file reviewers

@jqmmes
jqmmes force-pushed the joaquim/do-hibernation-timeout branch from a8bf387 to 6de46d3 Compare September 22, 2026 18:59
devin-ai-integration[bot]

This comment was marked as resolved.

@jqmmes
jqmmes force-pushed the joaquim/do-hibernation-timeout branch 2 times, most recently from 63c54ab to a5cb05b Compare September 23, 2026 16:09
Add immediate and deferred code update controls to deploy, versions deploy, and rollback. Send code_update_strategy objects directly to the deployments endpoint, retain grace-period conversion for legacy multipart uploads, and default unset strategies to deferred with a 30-second maximum delay. Validate maximum delays at millisecond precision to match the API contract.
@jqmmes
jqmmes force-pushed the joaquim/do-hibernation-timeout branch from a5cb05b to b649a0b Compare September 23, 2026 17:27
@cjol
cjol merged commit 8280086 into cloudflare:main Sep 25, 2026
53 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants