Affects Version/s: 3.1.1, 3.5
Fix Version/s: 3.5
- On your terminal, go to your Moodle root directory.
- Make sure in the resulting list there is a "lastrun" column with values "Never" or a "userdate" of the last run
Affected Branches:MOODLE_31_STABLE, MOODLE_35_STABLE
Pull from Repository:
Pull Master Branch:
Pull Master Diff URL:
Scheduled tasks CLI Script --list option does not show the last time the task ran successfully
Current 3.1.1 output is shown below
\assignfeedback_editpdf\task\convert_submissions */15 * * * * * ASAP
\auth_cas\task\sync_task 0 0 * * * * Plugin disabled
\auth_ldap\task\sync_task 0 0 * * * * Plugin disabled
\editor_atto\task\autosave_cleanup_task 18 13 * 2 * 2 Tuesday, October 25, 2016, 1:18 PM
\enrol_flatfile\task\flatfile_sync_task 15 * * * * * Plugin disabled
\enrol_imsenterprise\task\cron_task 10 * * * * * Plugin disabled
\enrol_lti\task\sync_grades */30 * * * * * Plugin disabled
\enrol_lti\task\sync_members */30 * * * * * Plugin disabled
\logstore_legacy\task\cleanup_task 16 5 * * * * Saturday, October 22, 2016, 5:16 AM
It would be useful for monitoring successful completion of tasks if the --list option also displayed the last time the task ran successfully, not only the next time the task is scheduled to run.
Additionally, if the dates could be outputted in the UNIX time stamp format, this would allow for easier consumption via monitoring scripts.