Fix: Correctly set 'child data dir/output dir' in branch handler's Abort and Finalize#7117
Open
Fix: Correctly set 'child data dir/output dir' in branch handler's Abort and Finalize#7117
Conversation
…ort and Finalize Signed-off-by: Fabio Grätz <[email protected]>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7117 +/- ##
==========================================
+ Coverage 56.94% 56.96% +0.02%
==========================================
Files 931 931
Lines 58188 58197 +9
==========================================
+ Hits 33135 33152 +17
+ Misses 22011 21992 -19
- Partials 3042 3053 +11
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
fg91
commented
Mar 30, 2026
| // status using the branch node's OutputDir as the base, and returns the computed OutputDir. | ||
| // This must be called before recursing into the branch-taken node so that any nested handler | ||
| // (e.g. a dynamic node) finds the correct paths. | ||
| func (b *branchHandler) setupBranchTakenNodePaths(ctx context.Context, nCtx interfaces.NodeExecutionContext, branchTakenNode v1alpha1.ExecutableNode) (storage.DataReference, error) { |
Member
Author
There was a problem hiding this comment.
Moved here from recurseDownstream.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Why are the changes needed?
When aborting the execution while the task called
test_taskwithin the@dynamicwithin theconditionalis running, flytepropeller cannot find thefutures.pbcontaining the dynamic workflow spec:Failed to propagate Abort for workflow. Error: 0: 0: 0: [system] unable to read futures file, maybe corrupted, caused by: [system] Failed to read futures protobuf file., caused by: path: .../futures.pb: not foundFlytepropeller tries to abort the workflows until the system retry limit is exhausted and then stops trying. The resources are not cleaned up.
What changes were proposed in this pull request?
The reason this is happening is that the
recurseDownstreammethod ofbranchHandlermodifies the so-called "child data dir" and "child output dir" depending which of the branch of the conditional is taken. This influences where thefutures.pbfile is written. TheAbortandFinalizemethods don't modify these dirs, causing the dynamic handler to look for thefutures.pbunder the wrong path when aborting the workflow.To avoid this, we need to modify the "child data dir" and "child output dir" in the
AbortandFinalizemethods as well.How was this patch tested?
Check all the applicable boxes