-
New Feature
-
Resolution: Fixed
-
Minor
-
3.7
-
MOODLE_37_STABLE
-
MOODLE_37_STABLE
-
MDL-64347-master -
There are a couple of areas which are proving problematic when dealing with large numbers of adhoc tasks.
Firstly there is nothing to stop lots of cron runs all running adhoc tasks and thereby blocking processing of non-adhoc tasks. This also typically overloads the box.
Secondly there is not limit to the number of adhoc tasks performed at any one time. If a box it configured to only allow 1 (or some other limit) cron runner at a time, this will also prevent regular tasks from running.
I'd suggest we improve the case for both of these by:
- adding a new config setting for max parallel adhoc tasks (default of 2 or 3)
- adding a limit so that, at most, only X adhoc tasks, or Y seconds of adhoc tasks are performed at once. Once complete the task will exit, and thus allow a new runner to start.