Skip to content
This repository has been archived by the owner on Sep 29, 2021. It is now read-only.

Commit

Permalink
Merge pull request #46 from suzuki-shunsuke/fix/fix-45
Browse files Browse the repository at this point in the history
fix: set task before evaluate task.output
  • Loading branch information
suzuki-shunsuke authored Oct 12, 2020
2 parents e458f76 + c364a77 commit f3fbefb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/controller/phase.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f3fbefb

Please sign in to comment.