mirror of
https://github.com/moodle/moodle.git
synced 2025-04-30 05:18:55 +02:00
This patch changes the way adhoc tasks are chosen to run. It now calculates how many runners each type of adhoc task should be allowed to use. In the case that not all the runners are utilised, it attempts to infer which tasks do not take a long time to run, and gives those to the vacant runners. Thanks to Brendan Heywood for guidance and SQL help.