-
Notifications
You must be signed in to change notification settings - Fork 2.4k
feat: pipeline checkpoints crash allow to resume from snapshot #9743
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
Merged
Merged
Changes from 43 commits
Commits
Show all changes
53 commits
Select commit
Hold shift + click to select a range
ef96b9f
initial PoC idea running
davidsbatista f00919b
removing test code
davidsbatista 443eb39
cleaning up
davidsbatista 9ed9e09
wip
davidsbatista cdb2718
Merge branch 'main' into poc/resume-state-for-crashes
davidsbatista f1c01fc
cleaning up demos
davidsbatista f249e22
adding more pipelines to test persistence saving
davidsbatista 85dd0f1
wip
davidsbatista f3abfc7
wip
davidsbatista e17166b
working example for logging components inputs in run time
davidsbatista 87cbb00
reverting to a simpler solution for intermediate results
davidsbatista db7fca5
cleaning up
davidsbatista b0caafc
testing that in a crash components outputs/inputs up to the crash poi…
davidsbatista 30176c5
adding tests for state persistance in a RAG pipeline
davidsbatista b93b221
updataing tests for state persistance in a RAG pipeline
davidsbatista f79a9cd
Merge branch 'main' into poc/resume-state-for-crashes
davidsbatista 7b75803
removing use cases of agent tests
davidsbatista d741d55
adding LICENSE header
davidsbatista b1bdda5
adding LICENSE header
davidsbatista 89aa58f
adding release notes
davidsbatista a276bc4
updating tests for mocked components only
davidsbatista 2f0ed63
Merge branch 'main' into poc/resume-state-for-crashes
davidsbatista 44d2faf
updating release notes
davidsbatista d6a0919
adapting PipelineRuntimeError
davidsbatista 98b8b3c
cleaning up tests
davidsbatista f0165b3
fixing test pipeline crash components inputs/outputs are saved
davidsbatista 2f3db39
fixing tests for state persistance
davidsbatista 91f9a33
removing code
davidsbatista 19c6680
removing code
davidsbatista a43f253
removing code
davidsbatista 064983d
updating release notes
davidsbatista d118e7f
validating parameters
davidsbatista d04899a
Merge branch 'main' into feat/pipeline-checkpoints-crash-resume
davidsbatista 820e442
cleaning
davidsbatista ed731b5
Merge branch 'main' into feat/pipeline-checkpoints-crash-resume
davidsbatista fc52b41
wip: debugging
davidsbatista aa4e820
removing persistance tests
davidsbatista 148b7d3
formatting
davidsbatista 357aea5
formatting
davidsbatista e0a1eeb
cleaning up code
davidsbatista b764ea8
updating release notes
davidsbatista f2d21bb
adding missing docstrings
davidsbatista 32a4ccc
typo in release notes
davidsbatista 5940c37
Update haystack/core/pipeline/pipeline.py
davidsbatista 4c8e648
PR comments
davidsbatista 1dd6fb2
handling potential issues with saving the snapshot file
davidsbatista d2651f9
updating tests
davidsbatista e32990e
Merge branch 'main' into feat/pipeline-checkpoints-crash-resume
davidsbatista 04b9615
Update haystack/core/pipeline/pipeline.py
davidsbatista 3133b74
Update haystack/core/pipeline/pipeline.py
davidsbatista ff7f969
some more improvements
davidsbatista fd16e51
fixing exxception
davidsbatista 59de130
fixing exception error name conflict
davidsbatista 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
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
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
6 changes: 6 additions & 0 deletions
6
releasenotes/notes/pipeline-resume-state-13ca79f53277e858.yaml
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,6 @@ | ||
--- | ||
features: | ||
- | | ||
A snapshot of the last successful step is now saved when an error occurs during a Pipeline run. This allows you | ||
to inspect the snapshot, potentially identify and fix the error, and later resume the pipeline from that point | ||
onwards. Avoiding to re-run the entire pipeline from the start. | ||
davidsbatista marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
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
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.
Uh oh!
There was an error while loading. Please reload this page.