Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.7
-
Fix Version/s: 2.8
-
Component/s: Administration, Libraries
-
Testing Instructions:
-
Affected Branches:MOODLE_27_STABLE
-
Fixed Branches:MOODLE_28_STABLE
-
Pull from Repository:
-
Pull Master Branch:
MDL-46207-master
Description
In MDL-45932, Damyon wrote:
Finally - the cron function will need to be modified to not do anything if the plugin is not enabled. Legacy cron does not call cron in disabled plugins - but scheduled tasks does not consider this. enrol_is_enabled() will do the trick.
This seems like a regression to me, if a plugin is disabled my expectation is that core ensures that no code from it is called in cron.
I guessed this was because we don't have the right hook for it, but David Mudrák (@mudrd8mz) mentions that we have core\plugininfo\base::is_enabled()
Attachments
Issue Links
- caused a regression
-
MDL-47206 Allow 'tool' plugins to run scheduled tasks
-
- Closed
-
-
MDL-48156 Schedule task manager misinterprets core\plugininfo\base::is_enabled()
-
- Closed
-
-
MDL-48383 Cron warns about disabled enrol_imsenterprise after each scheduled task
-
- Closed
-
-
MDLSITE-3593 The task local_plugins\task\update_download_stats not execute since Oct 27
-
- Closed
-
- has been marked as being related by
-
MDLSITE-3593 The task local_plugins\task\update_download_stats not execute since Oct 27
-
- Closed
-
- Testing discovered
-
MDL-45932 Implement Scheduled Task for IMS Enrolment plugin
-
- Closed
-