Merge branch 'MDL-73923-M311_tool_task_cronrunning-has-very-tight-limits-on-checking-cron-interval-and-expected-frequency' of https://github.com/ziegenberg/moodle into MOODLE_311_STABLE
This commit is contained in:
@@ -108,7 +108,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