moodle 3.5.5+, recycle bin not working after upgrading from moodle 3.3
Deleting a moodle quiz results in a 'Deletion in progress' displayed in the gradebook indefinitely, Never makes it to the Recycle bin.
My test quiz deletion records remain in the mdl_task_adhoc table and the fail delay is increasing.
This table also has 825 records before the recently deleted 2 test quizzes, they have a classname of \core\task\refresh_mod_calendar_events_task and faildelays of 86400,
are they preventing the last two records from running (classname \core_course\task\course_delete_modules) ?
Can I safely delete the records with faildelays of 86400 from mdl_task_adhoc? All of these records have classname \core\task\refresh_mod_calendar_events_task .Any downside to calendar events?
I have read another post regarding the recycle bin and the workaround is to remove 'id' data from the mdl_task_adhoc table. Their example is very different from my customdata though
so I was not inclined to try that workaround. Doesn't seem like it will work seeing as I can create the problem by deleting any quiz too.
My mdl_task_adhoc data looks like:
{"cms":"id":"538628","course":"10088","module":"16","instance":"15622","section":"154269","idnumber":"","added":"1561386251","score":"0","indent":"0","visible":"1","visibleoncoursepage":"1","visibleold":"1","groupmode":"0","groupingid":"0","completion":"0","completiongradeitemnumber":null,"completionview":"0","completionexpected":"0","showdescription":"0","availability":null,"deletioninprogress":"1"}],"userid":"7305","realuserid":"7305"}
the 825 calendar event records look like {"courseid":"12564"}
forum post sample looks like:
{"cms":{"52650":{"id":"52650"},"52651":{"id":"52651"},"52652":{"id":"52652"},"52653":{"id":"52653"},"52654":{"id":"52654"},"52655":{"id":"52655"},"52739":{"id":"52739"}},"userid":"3094","realuserid":"3094"}
===error logs=======
Viewing the gradebook does throw a php Warning, not sure if its related:
[26-Jun-2019 09:40:02 ] PHP Warning: A non-numeric value encountered in .....\grade\report\grader\lib.php on line 489
cronlog entry for recycle bin failure:
Adhoc task failed: core_course\task\course_delete_modules,Coding error detected, it must be fixed by a programmer: The course module 538628 could not be deleted. #0 ....\admin\tool\recyclebin\lib.php(151): tool_recyclebin\course_bin->store_item(Object(stdClass))
#1 ....\course\lib.php(1185): tool_recyclebin_pre_course_module_delete(Object(stdClass))
#2 ....\course\classes\task\course_delete_modules.php(66): course_delete_module('538628')
#3 ....\lib\cronlib.php(185): core_course\task\course_delete_modules->execute()
#4 ....\lib\cronlib.php(74): cron_run_inner_adhoc_task(Object(core_course\task\course_delete_modules))
#5 ....\admin\cli\cron.php(61): cron_run()
#6 {main}