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 and alexec committed Jan 27, 2022
1 parent 38fdf4c commit db58583
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
Expand Up @@ -2687,7 +2687,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

0 comments on commit db58583

Please sign in to comment.