From eb9db4197998edce390e9a327ffc092775aa25ec Mon Sep 17 00:00:00 2001 From: joey Date: Mon, 2 Sep 2024 17:00:57 +0800 Subject: [PATCH] fix workflow controller make panic due to processedTmpl is nil Signed-off-by: chengjoey <30427474+chengjoey@users.noreply.github.com> --- workflow/controller/dag.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workflow/controller/dag.go b/workflow/controller/dag.go index 7ecfc037374a..999fcc7a6880 100644 --- a/workflow/controller/dag.go +++ b/workflow/controller/dag.go @@ -449,7 +449,7 @@ func (woc *wfOperationCtx) executeDAGTask(ctx context.Context, dagCtx *dagContex } // Release acquired lock completed task. - if tmpl != nil { + if processedTmpl != nil { woc.controller.syncManager.Release(woc.wf, node.ID, processedTmpl.Synchronization) }