mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 16:04:25 +02:00
MDL-72467 tool_task: improve cron status check details.
This commit is contained in:
parent
443a980aea
commit
d12eb4943b
@ -71,7 +71,8 @@ class cronrunning extends check {
|
||||
$formatexpected = format_time($expectedfrequency);
|
||||
$formatinterval = format_time($lastcroninterval);
|
||||
|
||||
$details = format_time($delta);
|
||||
// Inform user the time since last cron start.
|
||||
$details = get_string('lastcronstart', 'tool_task', $formatdelta);
|
||||
|
||||
if ($delta > $expectedfrequency + MINSECS) {
|
||||
$status = result::WARNING;
|
||||
|
@ -51,6 +51,7 @@ $string['enablerunnow_desc'] = 'Allows administrators to run a single scheduled
|
||||
$string['faildelay'] = 'Fail delay';
|
||||
$string['fromcomponent'] = 'From component: {$a}';
|
||||
$string['hostname'] = 'Host name';
|
||||
$string['lastcronstart'] = 'Time since last cron run: {$a}';
|
||||
$string['lastruntime'] = 'Last run';
|
||||
$string['lastupdated'] = 'Last updated {$a}.';
|
||||
$string['nextruntime'] = 'Next run';
|
||||
|
Loading…
x
Reference in New Issue
Block a user