Merge branch 'MDL-73923_tool_task_cronrunning-has-very-tight-limits-on-checking-cron-interval-and-expected-frequency' of https://github.com/ziegenberg/moodle
This commit is contained in:
@@ -109,7 +109,8 @@ class cronrunning extends check {
|
||||
return new result($status, $summary, $details);
|
||||
}
|
||||
|
||||
if ($lastcroninterval > $expectedfrequency) {
|
||||
// Add MINSECS to avoid spurious warning if cron is only a few seconds overdue.
|
||||
if ($lastcroninterval > $expectedfrequency + MINSECS) {
|
||||
$status = result::WARNING;
|
||||
$summary = get_string('croninfrequent', 'admin', [
|
||||
'actual' => $formatinterval,
|
||||
|
||||
Reference in New Issue
Block a user