Details
-
Improvement
-
Status: Development in progress
-
Minor
-
Resolution: Unresolved
-
3.9.17, 3.10.6, 3.11.10, 4.0.4
-
None
Description
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.
Attachments
Issue Links
- has been marked as being related by
-
MDL-67648 Cron task manager quality of service (version 3)
-
- Closed
-