Add safe artifact previews

This commit is contained in:
Emil
2026-07-24 17:04:07 +03:00
parent d0aeb7fc95
commit 8b738efd5d
12 changed files with 400 additions and 9 deletions
+4
View File
@@ -119,6 +119,10 @@ func (p JobProgress) DeriveStatus() JobStatus {
switch {
case p.Job.Status == JobCancelled:
return JobCancelled
case p.Job.Status == JobFailed:
// A reducer may fail after every shard has completed. That terminal
// failure must not be overwritten by an otherwise-complete task count.
return JobFailed
case p.Job.Status == JobReducing:
return JobReducing
case p.Total == 0: