diff --git a/models/actions/run_job.go b/models/actions/run_job.go index 0002e507704d5..b443747c67799 100644 --- a/models/actions/run_job.go +++ b/models/actions/run_job.go @@ -143,7 +143,7 @@ func aggregateJobStatus(jobs []*ActionRunJob) Status { if !job.Status.IsDone() { allDone = false } - if job.Status != StatusWaiting { + if job.Status != StatusWaiting && !job.Status.IsDone() { allWaiting = false } if job.Status == StatusFailure || job.Status == StatusCancelled {