diff --git a/app/igneum-app/ui/app.js b/app/igneum-app/ui/app.js index d1f36e3ae..6fd6f2f12 100644 --- a/app/igneum-app/ui/app.js +++ b/app/igneum-app/ui/app.js @@ -768,8 +768,8 @@ } var l = j.last; if (!l || !l.id) return null; - // the last outcome stays up for 30 minutes - if (l.finished_at && now - l.finished_at > 1800) return null; + // the last outcome stays up for 5 minutes when it succeeded, 30 minutes when it failed (hide dismisses it at once) + if (l.finished_at && now - l.finished_at > (l.status === 'done' ? 300 : 1800)) return null; var d = Math.max(0, Math.round((l.finished_at - l.started_at) / 60)); return { text: 'Job: ' + (l.title || l.kind) + ' ' + l.status + ' after ' + d + ' min, exit ' + l.exit + (l.uploaded ? ', report uploaded' : ', report not uploaded') + (l.summary ? '. ' + l.summary : ''), results: j.last_results || [], failed: l.status !== 'done' }; }