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
… (#9690)

Signed-off-by: yangxue.chen <chenyangxuehdu@126.com>

Signed-off-by: yangxue.chen <chenyangxuehdu@126.com>
Co-authored-by: yangxue.chen <chenyangxuehdu@126.com>
  • Loading branch information
chenyangxueHDU and yangxue.chen committed Sep 29, 2022
1 parent 2f5e753 commit 0851c36
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 0851c36

Please sign in to comment.