-
Bug
-
Resolution: Fixed
-
Minor
-
3.9
-
MOODLE_39_STABLE
-
MOODLE_39_STABLE
-
master_
MDL-67502 -
course_backup_task class is defined in the core\task namespace, while execute() method is trying to catch "moodle_exception" (not "\moodle_exception"):
For example, when corresponding record is missing in "mdl_backup_courses" table task runner doesn't catch
course_backup_task's exception, throws it's own
core\task\course_backup_task,Can't find data record in database table backup_courses
|
and leaves the ad-hoc task in the queue with incremented faildelay:
moodle=# select classname, nextruntime, faildelay, customdata from mdl_task_adhoc where classname = '\core\task\course_backup_task'; |
classname | nextruntime | faildelay | customdata
|
-------------------------------+-------------+-----------+--------------------------------
|
\core\task\course_backup_task | 1576132773 | 240 | {"courseid":"1","adminid":"2"} |
(1 row) |