Hello Ken,
I am having this issue as well.
When my plugin creates an adhoc task, I can see there is a new record in table `mdl_task_adhoc` (And this was the ONLY record in this table). But the task was never completed.
Then I tried to run cron from browser, and I can see this error.
++ Failed to load task: \mod_equella\task\lti13_migration_task ++
* line 324 of /lib/classes/task/manager.php: call to debugging()
* line ? of unknownfile: call to core\task\manager::adhoc_task_from_record()
* line 661 of /lib/classes/task/manager.php: call to array_map()
* line 184 of /lib/cronlib.php: call to core\task\manager::get_next_adhoc_task()
* line 76 of /lib/cronlib.php: call to cron_run_adhoc_tasks()
* line 81 of /admin/cron.php: call to cron_run()
!!! Exception - Call to a member function get_concurrency_limit() on bool !!!
!!
Error code: generalexceptionmessage !!
!! Stack trace: * line 674 of /lib/classes/task/manager.php: Error thrown
* line ? of unknownfile: call to core\task\manager::core\task\{closure}()
* line 673 of /lib/classes/task/manager.php: call to array_map()
* line 184 of /lib/cronlib.php: call to core\task\manager::get_next_adhoc_task()
* line 76 of /lib/cronlib.php: call to cron_run_adhoc_tasks()
* line 81 of /admin/cron.php: call to cron_run()
!!
If I use cli to execute the adhoc task, it can be completed quickly, and the record is removed from that table.
My adhoc task is pretty simple - just printing out some texts.
Do you have any idea ?
Thank you!
I am having this issue as well.
When my plugin creates an adhoc task, I can see there is a new record in table `mdl_task_adhoc` (And this was the ONLY record in this table). But the task was never completed.
Then I tried to run cron from browser, and I can see this error.
++ Failed to load task: \mod_equella\task\lti13_migration_task ++
* line 324 of /lib/classes/task/manager.php: call to debugging()
* line ? of unknownfile: call to core\task\manager::adhoc_task_from_record()
* line 661 of /lib/classes/task/manager.php: call to array_map()
* line 184 of /lib/cronlib.php: call to core\task\manager::get_next_adhoc_task()
* line 76 of /lib/cronlib.php: call to cron_run_adhoc_tasks()
* line 81 of /admin/cron.php: call to cron_run()
!!! Exception - Call to a member function get_concurrency_limit() on bool !!!
!!
Error code: generalexceptionmessage !!
!! Stack trace: * line 674 of /lib/classes/task/manager.php: Error thrown
* line ? of unknownfile: call to core\task\manager::core\task\{closure}()
* line 673 of /lib/classes/task/manager.php: call to array_map()
* line 184 of /lib/cronlib.php: call to core\task\manager::get_next_adhoc_task()
* line 76 of /lib/cronlib.php: call to cron_run_adhoc_tasks()
* line 81 of /admin/cron.php: call to cron_run()
!!
If I use cli to execute the adhoc task, it can be completed quickly, and the record is removed from that table.
My adhoc task is pretty simple - just printing out some texts.
Do you have any idea ?
Thank you!