-
Improvement
-
Resolution: Fixed
-
Minor
-
3.0
-
MOODLE_30_STABLE
-
MOODLE_30_STABLE
-
MDL-51330-master -
In cron logs, it shows 'Executing scheduled task' logging for each task.
This shows the display name of the task, but does not include the plugin name that owns that task. I propose adding the class name (which includes the component) in brackets after the task name. This is more consistent with adhoc tasks, which don't show a name and only display the class name, and provides all the necessary information for administrators about which plugin is causing a potential problem.
Without this change, it would be possible for task authors to include the name of their plugin within the name of the task. However, doing this makes the table that lists scheduled tasks (admin settings) look bad because that table already includes the component name as a separate column.
Dan pointed out that changes in this area might need to be done in more than one location, as in this recent commit:
https://github.com/moodle/moodle/commit/a6e9c23016d115541f3d089cb6885441e287ada8
Based on this I have also changed some of the wording of the CLI task runner so that it is consistent with the 'normal' cron, and made the same change there to show the class.