Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.7, 2.8
-
Fix Version/s: 2.7.3
-
Component/s: Administration, Libraries
-
Labels:
-
Testing Instructions:
-
Affected Branches:MOODLE_27_STABLE, MOODLE_28_STABLE
-
Fixed Branches:MOODLE_27_STABLE
-
Pull from Repository:
-
Pull Master Branch:
MDL-47182-master -
Pull Master Diff URL:
Description
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.