Skip to content

Commit

Permalink
fix: Updating complated node status
Browse files Browse the repository at this point in the history
Signed-off-by: Saravanan Balasubramanian <[email protected]>
  • Loading branch information
sarabala1979 committed Apr 12, 2022
1 parent 4e20442 commit e97b0e6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion workflow/controller/exec_control.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ func (woc *wfOperationCtx) applyExecutionControl(ctx context.Context, pod *apiv1
}

nodeID := woc.nodeID(pod)

node := woc.wf.Status.Nodes[nodeID]
//node is already completed
if node.Fulfilled() {
return
}
switch pod.Status.Phase {
case apiv1.PodSucceeded, apiv1.PodFailed:
// Skip any pod which are already completed
Expand Down

0 comments on commit e97b0e6

Please sign in to comment.