Hi all,
I'm on moodle 3.5, php 7.0.33, ubuntu 16.04.16. It's an internally hosted site I took over a couple of years ago and we plan to move to external hosting/management but recent events have delayed this. Just to explain why it's quite old. My sql experience was with a small site over 15 years ago, linux experience equally old, moodle admin experience not at all.
I've got a dev server which is a clone from Feb 2020 of the site when we moved it to a larger virtual server. At the start of term we were hit by the 'recycle bin' variant of runaway auto backups on the live site. Diagnosed thanks to the information on this site. It was caused when a couple of users deleted folders with 10-20 media files in. The recycle bin timed out (not sure which) and I've now four tasks in mdl_task_adhoc. running every 24 hours and filling /temp/backup.
id: 75806, id 75807 and id 76808 are the page object from the course 465, 109614 was a folder (I think). Deletioninprogress is set to 1 and I think failing because the original objects don't exist on the course anymore.
Am I ok to delete these tasks? And how do I do it! I've got access to toad for mysql.
I've emptied the bin for all the courses, set the recycle bin off, let it run through a few cron jobs, then switched it back on. It was set to empty after 14 days and I've reduced it to 7.
I've been unable to replicate the problem on the dev server. The only differences between the sites is the live site has more activities on it, and is not as up to date on server patches.
id | component | classname | nextruntime | faildelay | customdata |
6709 | \core_course\task\course_delete_modules | 1632304427 | 86400 | {"cms":[{"id":"75806","course":"465","module":"15","instance":"595", "section":"83553","idnumber":"","added":"1536525012","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":"46", "realuserid":"46"} |
|
6710 | \core_course\task\course_delete_modules | 1632304461 | 86400 | {"cms":[{"id":"75807","course":"465","module":"15","instance":"596", "section":"83553","idnumber":"","added":"1536525012","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":"46","realuserid":"46"} |
|
6711 | \core_course\task\course_delete_modules | 1632304537 | 86400 | {"cms":[{"id":"75808","course":"465","module":"15","instance":"597", "section":"83553","idnumber":"","added":"1536525012","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":"46","realuserid":"46"} |
|
7140 | \core_course\task\course_delete_modules | 1632268438 | 86400 | {"cms":[{"id":"109614","course":"21","module":"8","instance":"9158", "section":"73435","idnumber":"","added":"1602693874","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":"14", "realuserid":"14"} |