fix: show blocked jobs

This commit is contained in:
Jason Song committed 2022-11-25 17:48:47 +08:00
1 parent dc7e64041a
commit 465c348922
4 files changed
+6 -4

No files matched your search

+2 -1
View File
@@ -166,8 +166,9 @@ func InsertRun(run *Run, jobs []*jobparser.SingleWorkflow) error {
runJobs := make([]*RunJob, 0, len(jobs))
for _, v := range jobs {
id, job := v.Job()
payload, _ := v.Marshal()
needs := job.Needs()
job.EraseNeeds()
payload, _ := v.Marshal()
status := StatusWaiting
if len(needs) > 0 {
status = StatusBlocked