From 234cdc67e1a541c414feb909f04f437111e86145 Mon Sep 17 00:00:00 2001 From: Jason Song Date: Thu, 3 Nov 2022 12:14:40 +0800 Subject: [PATCH] fix: run's status should failure with canceled jobs --- models/bots/run_job.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/bots/run_job.go b/models/bots/run_job.go index 115bdb1a96..af5271d219 100644 --- a/models/bots/run_job.go +++ b/models/bots/run_job.go @@ -167,7 +167,7 @@ func aggregateJobStatus(jobs []*RunJob) Status { if job.Status != StatusWaiting { allWaiting = false } - if job.Status == StatusFailure { + if job.Status == StatusFailure || job.Status == StatusCancelled { hasFailure = true } }