Mark job as error when it's not healthy

This commit is contained in:
Dzmitry Plashchynski
2015-03-10 23:26:58 +02:00
parent a24389f6cc
commit 5a5c29c52a
2 changed files with 10 additions and 0 deletions

View File

@@ -7,10 +7,15 @@
%th Job
%th Last performed at
%th
%th
- for job in @jobs
%tr
%td= job.job_id
%td= job.last_performed_at || "—"
%td
- if job.healthy == false
%a{href: url("/job/#{job.id}")}
%span.label.label-danger Error
%td
%a{href: url("/job/#{job.id}")}
Log

View File

@@ -5,4 +5,9 @@
%h2
"#{@job.job_id}" Log:
- if @job.healthy == false
.alert.alert-danger{role: "alert"}
An error occurs during the last execution of this job. Check the log below for details.
%pre= @job.log