Skip to content

Commit

Permalink
fix: Workflow-controller panic when stop a wf using plugin. Fixes arg…
Browse files Browse the repository at this point in the history
…oproj#9587 (argoproj#9690)

Signed-off-by: yangxue.chen <[email protected]>

Signed-off-by: yangxue.chen <[email protected]>
Co-authored-by: yangxue.chen <[email protected]>
Signed-off-by: juchao <[email protected]>
  • Loading branch information
2 people authored and juchaosong committed Nov 3, 2022
1 parent 921d821 commit 35fafaf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion workflow/controller/exec_control.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ func (woc *wfOperationCtx) applyExecutionControl(pod *apiv1.Pod, wfNodesLock *sy
}

nodeID := woc.nodeID(pod)
node := woc.wf.Status.Nodes[nodeID]
node, ok := woc.wf.Status.Nodes[nodeID]
if !ok {
return
}
//node is already completed
if node.Fulfilled() {
return
Expand Down

0 comments on commit 35fafaf

Please sign in to comment.