Open anieminen opened 1 year ago
@weilai-irl any progress on fixing this?
Hi @anieminen and @Urpokarhu1
The old ad-hoc task has been removed some time ago. Please feel free to remove the remaining instances of such tasks from the tasks_adhoc table. They shouldn't be hanging in there any more.
Regards, Lai
Hi,
Recently we upgraded Moodle from version 3.9 to 4.1 with M365 plugins. After the upgrade, adhoc tasks are not running. The problem seems to be caused by an old adhoc task
\local_o365\task\sharepointaccesssync
, which doesn't exist anymore, but is still present in the adhoc task queue.So the task(s) with that class name should be deleted from
task_adhoc
database table when upgrading the local_o365 plugin. Doing this manually fixes the problem.Trying to run the missing adhoc task causes an exception every time when Moodle cron is run, and this also prevents other adhoc tasks from running: