From c364a773c593b6d97e5a00f674289363c5df884f Mon Sep 17 00:00:00 2001 From: Shunsuke Suzuki Date: Mon, 12 Oct 2020 09:25:27 +0900 Subject: [PATCH] fix: set task before evaluate task.output --- pkg/controller/phase.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/controller/phase.go b/pkg/controller/phase.go index d02d685..eaad334 100644 --- a/pkg/controller/phase.go +++ b/pkg/controller/phase.go @@ -236,6 +236,7 @@ func (phase *Phase) runTask(ctx context.Context, idx int, task Task, params Para return } task.Result.Status = constant.Succeeded + paramsPhase.Tasks.Set(idx, task) output, err := task.Config.Output.Run(params.ToExpr()) if err != nil { task.Result.Status = constant.Failed