-
Bug
-
Resolution: Fixed
-
Minor
-
2.7, 2.8
-
MOODLE_27_STABLE, MOODLE_28_STABLE
-
MOODLE_27_STABLE
-
MDL-47182-master -
On one of our sites we have disabled all activity modules.
Unfortunately that causes the 'cron not run recently' warning to occur as it does:
$lastcron = $DB->get_field_sql('SELECT MAX(lastcron) FROM {modules}');
|
Perhaps we could use scheduled tasks lastrun for this indicator instead.
Steps to reproduce:
- Install a new Moodle dont setup cron
- Disable all activity modules
- Run cron manally
Expected result:
The 'cron.php maintenance script</a> has not been run for at least 24 hours.' does not appear.
Actual result:
The cron warning appears and never disappears.