-
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
base: production
Are you sure you want to change the base?
Changes from 5 commits
a850d9d
a798aa1
f72c8f0
1386e6e
d309de7
22328b0
1ab259d
a6e1fd0
65b7e91
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| --- | ||
| 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-10 | ||
| --- | ||
|
|
||
| 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. 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). However, the restarted instance will count towards the creation rate limit (100 instances per second). | ||
|
||
|
|
||
| For more information on concurrency and creation limits, refer to [Workflow limits](/workflows/reference/limits/). | ||
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.
capitalize Workflow?