Skip to content

Commit

Permalink
fix: only aggregates output from successful nodes (#7517)
Browse files Browse the repository at this point in the history
* fix: only aggregates outputs for successful retry nodes

Signed-off-by: Dillen Padhiar <dpadhiar99@gmail.com>

* fix: does not aggregate output from retry child nodes anymore

Signed-off-by: Dillen Padhiar <dpadhiar99@gmail.com>
  • Loading branch information
dpadhiar authored Jan 6, 2022
1 parent f93d00a commit 0f206d6
Show file tree
Hide file tree
Showing 2 changed files with 446 additions and 1 deletion.
2 changes: 1 addition & 1 deletion workflow/controller/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -2727,7 +2727,7 @@ func (woc *wfOperationCtx) processAggregateNodeOutputs(scope *wfScope, prefix st
outputParamValueLists := make(map[string][]string)
resultsList := make([]wfv1.Item, 0)
for _, node := range childNodes {
if node.Outputs == nil {
if node.Outputs == nil || node.Phase != wfv1.NodeSucceeded || node.Type == wfv1.NodeTypeRetry {
continue
}
if len(node.Outputs.Parameters) > 0 {
Expand Down
Loading

0 comments on commit 0f206d6

Please sign in to comment.