fix(sdk): allow upstream group to be resolved as dependency of task #11946
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.
Description of your changes:
This pull request addresses a KeyError that occurs during pipeline compilation under specific circumstances involving nested conditional logic. The double if structure is needed to make sure the
downstream_op
can always resume after the if check, which it does not do with the usual one-if structure when it resolves toFalse
.It seems like the current implementation, introduced in the diff of tag 2.0.2 -> 2.0.3, does not consider a group to be an eligeble dependency. The concern with the fix I implemented is that it clashes with this comment left by @connor-mccarthy :
I have prepared the fix which makes the added test pass, but I'm open to discussion, as I'm not close enough to the project to fully understand the possible restriction of the DAG dependecy tracking.
Failing test result
Checklist: