-
Notifications
You must be signed in to change notification settings - Fork 10k
adding-instance-restarts-changelog-entry #26372
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
mia303
wants to merge
9
commits into
cloudflare:production
Choose a base branch
from
mia303:mia303/instance-restart-changelog
base: production
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 7 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
a850d9d
adding-instance-restarts-changelog-entry
mia303 a798aa1
Update 2025-11-07-instance-restarts.mdx
mia303 f72c8f0
Update 2025-11-07-instance-restarts.mdx
mia303 1386e6e
updated-wrangler-mention
mia303 d309de7
Update and rename 2025-11-07-instance-restarts.mdx to 2025-11-10-inst…
mia303 22328b0
Update 2025-11-10-instance-restarts.mdx
mia303 1ab259d
Update and rename 2025-11-10-instance-restarts.mdx to 2025-11-12-inst…
mia303 a6e1fd0
Update 2025-11-12-instance-restarts.mdx
mia303 65b7e91
Update 2025-11-12-instance-restarts.mdx
mia303 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
src/content/changelog/workflows/2025-11-12-instance-restarts.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| --- | ||
| title: Instance restarts now supported in Workflows | ||
| description: You can now restart an instance of your Workflow without losing its concurrency spot | ||
| products: | ||
| - workflows | ||
| - workers | ||
| date: 2025-11-12 | ||
| --- | ||
|
|
||
| You can now restart a [Cloudflare Workflow](/workflows/) instance via the [API](/api/resources/workflows/methods/list/), [Wrangler](/workers/wrangler/commands/#workflows), or [Workers](/workflows/build/workers-api/): | ||
|
|
||
| ```typescript | ||
| let instance = await env.MY_WORKFLOW.get("abc-123"); | ||
| await instance.restart(); // Returns Promise<void> | ||
| ``` | ||
|
|
||
| You may want to [restart an instance](/workflows/build/trigger-workflows/#restart-a-workflow) if the Workflow has been updated, the parameters have changed, or the Workflow has reached its step limit. This allows you to make changes without waiting until the instance is complete or preserve a long-running instance through restart. Restarting an instance will immediately cancel any in-progress steps, erase any intermediate state, and treat the Workflow as if it was run for the first time. | ||
|
|
||
| If the instance is already running, the restart will not lose its concurrency slot (limit of 10,000 concurrent instances). For example, say you have 10,000 instances running and 2,000 instances queued. If you restart a runnning instance, it will maintain its spot in the 10,000 rather than slotting into the back of the queue. | ||
|
|
||
| However, note that the restarted instance will count towards the instance creation rate limit (100 Workflow instances per second). | ||
|
||
|
|
||
| For more information on concurrency and creation limits, refer to [Workflow limits](/workflows/reference/limits/). | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the example. You can be more concrete — and say if the instance was in the 300th slot, it would go back in there as opposed to the 2001st.