Skip to content

[types] add restart-from-step support to WorkflowInstance.restart()#6591

Closed
vaishnav-mk wants to merge 3 commits intocloudflare:mainfrom
vaishnav-mk:vaish/restart-from-step
Closed

[types] add restart-from-step support to WorkflowInstance.restart()#6591
vaishnav-mk wants to merge 3 commits intocloudflare:mainfrom
vaishnav-mk:vaish/restart-from-step

Conversation

@vaishnav-mk
Copy link
Copy Markdown
Contributor

@vaishnav-mk vaishnav-mk commented Apr 16, 2026

Extends WorkflowInstance.restart() to accept an optional from parameter, allowing users to restart a workflow instance from a specific step instead of from the beginning.

await instance.restart({ from: { name: 'aggregate' } });
await instance.restart({ from: { name: 'process', count: 3 } });
await instance.restart({ from: { name: 'checkpoint', type: 'do' } });

@vaishnav-mk vaishnav-mk changed the title add restart-from-step support to WorkflowInstance.restart() [types] add restart-from-step support to WorkflowInstance.restart() Apr 16, 2026
@vaishnav-mk vaishnav-mk force-pushed the vaish/restart-from-step branch from c9d7b6a to 4c54305 Compare April 16, 2026 12:54
@vaishnav-mk vaishnav-mk marked this pull request as ready for review April 16, 2026 12:56
@vaishnav-mk vaishnav-mk requested review from a team as code owners April 16, 2026 12:56
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Apr 21, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 66.52%. Comparing base (061f8ae) to head (378df4c).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6591   +/-   ##
=======================================
  Coverage   66.52%   66.52%           
=======================================
  Files         405      405           
  Lines      115815   115815           
  Branches    19381    19381           
=======================================
+ Hits        77043    77049    +6     
+ Misses      27198    27191    -7     
- Partials    11574    11575    +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

3 participants