Skip to content

Commit

Permalink
fix running state hooks in a dag template can not refer to output of …
Browse files Browse the repository at this point in the history
…earlier tasks

Signed-off-by: joey <[email protected]>
  • Loading branch information
chengjoey committed Sep 21, 2024
1 parent dc731d0 commit 98afbbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workflow/controller/hooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func (woc *wfOperationCtx) executeTmplLifeCycleHook(ctx context.Context, scope *
woc.log.WithField("lifeCycleHook", hookName).WithField("node", hookNodeName).WithField("hookName", hookName).Info("Running hooks")
resolvedArgs := hook.Arguments
var err error
if !resolvedArgs.IsEmpty() && outputs != nil {
if !resolvedArgs.IsEmpty() {
resolvedArgs, err = woc.resolveExitTmplArgument(hook.Arguments, prefix, outputs, scope)
if err != nil {
return false, err
Expand Down

0 comments on commit 98afbbc

Please sign in to comment.