We are using,
Moodle : 3.5.9
Actually we have perform migration from Moodle 3.4+ to Moodle 3.5.9. Now whenever we are trying to run
cron job i.e php admin/cli/cron.php. We are experiencing an error, which abruptly end cron job in middle.
We read somewhere that from moodle2.7+, if any issue in task within cron job, moodle leave particular task and continue to next. Following is the output of cron job.
Server Time: Tue, 03 Dec 2019 16:45:52 +0530
Execute scheduled task: Legacy cron processing for plugins (core\task\legacy_plugin_cron_task)
... started 16:45:53. Current memory use 15.4MB.
Running auth crons if required...
Running enrol crons if required...
Running cron for enrol_notificationeabc...
Starting activity modules
Processing module function assign_cron ...
... used 12 dbqueries
... used 4.0297000408173 seconds
Processing module function chat_cron ...
... used 5 dbqueries
... used 0.35854697227478 seconds
Processing module function quiz_cron ...
Looking for quiz overdue quiz attempts...
!!! Exception - Argument 2 passed to has_capability() must be an instance of context, null given, called in [dirroot]\mod\quiz\attemptlib.php on line