Skip to content

Commit c33354c

Browse files
committed
Fix detection of finished jobs
Fixes: commit e179725
1 parent cef4726 commit c33354c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

dashboard/assets/scripts/dashboard.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -492,10 +492,12 @@ class JobsRenderer {
492492
logSegment.appendChild(h("div", Reusable.obj_className_line_stdout, line));
493493
renderedLines += 1;
494494

495-
// Check for 'Finished RsyncUpload for Item'
496-
// instead of 'Starting MarkItemAsDone for Item'
497-
// because the latter is often missing
498-
if (/^Finished RsyncUpload for Item/.test(line)) {
495+
// Check for several completion messages
496+
// because some of them are often missing
497+
// Ignore error jobs as they get done messages.
498+
if (!info.statsElements.jobInfo.classList.contains("job-info-fatal") &&
499+
!info.statsElements.jobInfo.classList.contains("job-info-aborted") &&
500+
/^ *[1-9][0-9]* bytes\.$|^Starting (RelabelIfAborted|MarkItemAsDone) for Item$|^Finished (WgetDownload|MoveFiles|StopHeartbeat) for Item$/.test(line)) {
499501
info.statsElements.jobInfo.classList.add("job-info-done");
500502
this.jobs.markFinished(ident);
501503
} else if (

0 commit comments

Comments
 (0)