Execute adhoc task: core_course\task\course_delete_modules
... started 09:45:05. Current memory use 38.5mb.
... used 7 dbqueries
... used 0.041072130203247 seconds
Adhoc task failed: core_course\task\course_delete_modules,Coding error detected, it must be fixed by a programmer: The course module 341 could not be deleted. #0 /var/www/html/moodle/lib/dml/moodle_database.php(1522): moodle_database->get_record_select('course_modules', 'WHERE id = ?', Array, 'id,course', 2)
#1 /var/www/html/moodle/lib/accesslib.php(7106): moodle_database->get_record('course_modules', Array, 'id,course', 2)
#2 /var/www/html/moodle/mod/studentquiz/lib.php(218): context_module::instance('10697')
#3 /var/www/html/moodle/course/lib.php(1141): studentquiz_pre_course_module_delete(Object(stdClass))
#4 /var/www/html/moodle/course/classes/task/course_delete_modules.php(66): course_delete_module('341')
#5 /var/www/html/moodle/lib/cronlib.php(272): core_course\task\course_delete_modules->execute()
#6 /var/www/html/moodle/lib/cronlib.php(155): cron_run_inner_adhoc_task(Object(core_course\task\course_delete_modules))
#7 /var/www/html/moodle/lib/cronlib.php(76): cron_run_adhoc_tasks(1576979101)
#8 /var/www/html/moodle/admin/cli/cron.php(61): cron_run()
#9 {main}
