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 18, 2022
1 parent 0a09568 commit 502cf6d
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 502cf6d

Please sign in to comment.