mirror of
https://github.com/plashchynski/crono.git
synced 2026-03-28 04:12:00 +01:00
Mark job as error when it's not healthy
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user