Skip to content

[workflows] adding restart-from-step support to the sdk#13565

Draft
vaishnav-mk wants to merge 7 commits intocloudflare:mainfrom
vaishnav-mk:vaish/restart-from-step
Draft

[workflows] adding restart-from-step support to the sdk#13565
vaishnav-mk wants to merge 7 commits intocloudflare:mainfrom
vaishnav-mk:vaish/restart-from-step

Conversation

@vaishnav-mk
Copy link
Copy Markdown

Workflows: Add restart from step support for local dev

Extends WorkflowHandle.restart() to accept an optional from parameter for selective restart

Describe your change...

Adds support for:
await instance.restart({ from: { name: 'aggregate' } });
await instance.restart({ from: { name: 'process', count: 3 } });


  • Tests
    • Tests included/updated
    • Automated tests not possible - manual testing has been completed as follows:
      • Ran fixtures/workflow and fixtures/workflow-multiple locally with wrangler dev, triggered restarts with from param via the binding, verified preserved steps retain cached outputs and re-executed steps produce fresh results - [ ] Additional testing not necessary because:
  • Public documentation
    • Cloudflare docs PR(s):
    • Documentation not necessary because: API surface matches workerd types, docs will be updated with the workerd PR

A picture of a cute animal (not mandatory, but encouraged)
(her name's coconut)
image

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 16, 2026

⚠️ No Changeset found

Latest commit: e69ab0f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

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

@vaishnav-mk vaishnav-mk changed the title add restart-from-step support to WorkflowHandle.restart() — uses { fr… [workflows] adding restart-from-step support to the sdk Apr 16, 2026
@vaishnav-mk vaishnav-mk force-pushed the vaish/restart-from-step branch from 0d07aef to cb9c819 Compare April 16, 2026 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant