From 9d01f85e8ae7bb19713e535d5608fe26431f204a Mon Sep 17 00:00:00 2001 From: Shunsuke Suzuki Date: Fri, 16 Oct 2020 09:52:48 +0900 Subject: [PATCH] fix: fix infinite phase detection --- pkg/controller/phase.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/controller/phase.go b/pkg/controller/phase.go index a9a5bd2..282e703 100644 --- a/pkg/controller/phase.go +++ b/pkg/controller/phase.go @@ -320,7 +320,7 @@ func (phase *Phase) Run(ctx context.Context, params Params, wd string) error { allFinished := true noRunning := true queuedTasks := []string{} - for _, task := range phase.Tasks.GetAll() { + for _, task := range p.Tasks.GetAll() { if !task.Result.IsFinished() { allFinished = false if task.Result.Status == constant.Running {