mirror of
https://github.com/plashchynski/crono.git
synced 2026-04-22 16:58:42 +02:00
Mark job as error when it's not healthy
This commit is contained in:
@@ -7,10 +7,15 @@
|
|||||||
%th Job
|
%th Job
|
||||||
%th Last performed at
|
%th Last performed at
|
||||||
%th
|
%th
|
||||||
|
%th
|
||||||
- for job in @jobs
|
- for job in @jobs
|
||||||
%tr
|
%tr
|
||||||
%td= job.job_id
|
%td= job.job_id
|
||||||
%td= job.last_performed_at || "—"
|
%td= job.last_performed_at || "—"
|
||||||
|
%td
|
||||||
|
- if job.healthy == false
|
||||||
|
%a{href: url("/job/#{job.id}")}
|
||||||
|
%span.label.label-danger Error
|
||||||
%td
|
%td
|
||||||
%a{href: url("/job/#{job.id}")}
|
%a{href: url("/job/#{job.id}")}
|
||||||
Log
|
Log
|
||||||
|
|||||||
@@ -5,4 +5,9 @@
|
|||||||
|
|
||||||
%h2
|
%h2
|
||||||
"#{@job.job_id}" Log:
|
"#{@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
|
%pre= @job.log
|
||||||
|
|||||||
Reference in New Issue
Block a user