Skip to content

Commit

Permalink
fix: Workflow-controller panic when stop a wf using plugin. Fixes #9587
Browse files Browse the repository at this point in the history
Signed-off-by: yangxue.chen <[email protected]>
  • Loading branch information
yangxue.chen committed Sep 29, 2022
1 parent 9afdea9 commit 37c3fd2
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 37c3fd2

Please sign in to comment.