Skip to content

fork from failure#425

Merged
devhawk merged 15 commits into
mainfrom
devhawk/fork-from-failure
Jun 9, 2026
Merged

fork from failure#425
devhawk merged 15 commits into
mainfrom
devhawk/fork-from-failure

Conversation

@devhawk

@devhawk devhawk commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

Note, this PR has a minor breaking change detailed below

This PR implements forkFromFailure, which re-executes a failed workflow starting from a specific prior step, copying completed step outputs so they don't re-run.

forkWorkflow and forkFromFailure now share a bulkForkWorkflows helper which owns transaction management and handles batch inserts

ForkOptions timeout field changed from Timeout to @nullable Duration — fork timeouts are always explicit or absent, never inherited. ForkOptions.timeout is a public field used by the API so this is a minor breaking change

fixes #351

@devhawk devhawk requested review from kraftp, maxdml and qianl15 June 8, 2026 21:34
@devhawk devhawk changed the title Devhawk/fork from failure fork from failure Jun 8, 2026

@kraftp kraftp 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.

Looks good--does this pass Conductor tests?

Comment thread transact/src/main/java/dev/dbos/transact/DBOS.java Outdated
@devhawk devhawk closed this Jun 9, 2026
@devhawk devhawk reopened this Jun 9, 2026
@devhawk

devhawk commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator Author

(closed by accident, reopened)

@devhawk devhawk merged commit e5f02c6 into main Jun 9, 2026
35 of 36 checks passed
@devhawk devhawk deleted the devhawk/fork-from-failure branch June 9, 2026 17:14
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.

Fork From Failure support

2 participants