JobTable: show error in table if any

This commit is contained in:
Thomas Gelf 2016-06-28 10:28:53 +02:00
parent 820d6ce197
commit 3c8d82d25f
1 changed files with 5 additions and 0 deletions

View File

@ -39,6 +39,11 @@ class JobTable extends QuickTable
if ($row->unixts_last_attempt === null) { if ($row->unixts_last_attempt === null) {
return 'pending'; 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()) { if ($row->unixts_last_attempt + $row->run_interval < time()) {
return 'pending'; return 'pending';
} }