Skip to content
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

Recursively handle subworkflow in dynamic #260

Merged
merged 3 commits into from
Oct 16, 2023

Conversation

honnix
Copy link
Member

@honnix honnix commented Oct 9, 2023

TL;DR

Recursively handle subworkflow in dynamic

Type

  • Bug Fix
  • Feature
  • Plugin

Are all requirements met?

  • Code completed
  • Smoke tested
  • Unit tests added
  • Code documentation added
  • Any pending items have an associated Issue

Complete description

Today subworkflow in dynamic task does not really work because we are not including all referenced task templates and propeller fails the compilation. This PR fixes that by recursively collecting all referenced task templates to include them in the dynamic job proto.

Tracking Issue

NA

Follow-up issue

NA

Signed-off-by: Hongxin Liang <[email protected]>
List<Node> nodes,
Map<WorkflowIdentifier, WorkflowTemplate> allWorkflows,
Function<List<Node>, List<Node>> nodesRewriter) {
List<Node> rewrittenNodes = nodesRewriter.apply(nodes);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a bug fix because recursively collecting subworkflows doesn't work under dynamic task execution context.

@honnix honnix marked this pull request as ready for review October 9, 2023 15:39
Signed-off-by: Hongxin Liang <[email protected]>
@andresgomezfrr andresgomezfrr merged commit eb684d7 into master Oct 16, 2023
4 checks passed
@andresgomezfrr andresgomezfrr deleted the subworkflow-in-dynamic branch October 16, 2023 07:00
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.

2 participants