JobTable: show error in table if any
This commit is contained in:
parent
820d6ce197
commit
3c8d82d25f
|
@ -39,6 +39,11 @@ class JobTable extends QuickTable
|
|||
if ($row->unixts_last_attempt === null) {
|
||||
return 'pending';
|
||||
}
|
||||
|
||||
if ($row->last_attempt_succeeded === 'n' && $row->last_error_message) {
|
||||
$row->job_name .= ' (' . $row->last_error_message . ')';
|
||||
}
|
||||
|
||||
if ($row->unixts_last_attempt + $row->run_interval < time()) {
|
||||
return 'pending';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue