-
Improvement
-
Resolution: Done
-
Minor
-
None
-
3.9 regressions, 3.9.17, 3.10.6, 3.11.10, 4.0.4
-
MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE
-
If there are 2000 or more backups listed in the task_adhoc table, processing of other adhoc tasks like forum notifications stops. This is the result of a hard coded limit in lib/classes/task/manager.php. In particular, the line
$records = $DB->get_records_select('task_adhoc', $where, $params, 'nextruntime ASC, id ASC', '*', 0, 2000);
limits the number of adhoc tasks that will be examined without considering the task concurrency limits. So, if there are a large number of backups in the queue, that select statement may only return them. In my case, increasing the limit to 4000 solved the issue, but I wouldn't view that as the perfect solution.