#5505 [BUG] array node sub node control flow inheritance
Pull request opened by
pvditt on <!date^1719219904^{date_short}|2024-06-24T09:05:04Z>
Tracking issue
Why are the changes needed?
Array node increments workflow parallelism from the parent node. Right now, the same control flow that tracks parallelism for the workflow is passed down to subnodes allowing subnodes to bump the workflow parallelism which could lead to a double counting of nodes getting evaluated in a workflow.
If/when ArrayNode supports subworkflows or dynamics then we can pass back in the parent control flow.
What changes were proposed in this pull request?
Init a new control flow when creating the exec context for array node subnodes
How was this patch tested?
Ran a few workflows locally
Setup process
Screenshots
Check all the applicable boxes
• I updated the documentation accordingly.
• All new and existing tests passed.
• All commits are signed-off.
Related PRs
Docs link
flyteorg/flyte