Merge branch 'MDL-68433-adhoc-task-lookahead' of https://github.com/brendanheywood/moodle
This commit is contained in:
@@ -568,8 +568,7 @@ class manager {
|
||||
|
||||
$where = '(nextruntime IS NULL OR nextruntime < :timestart1)';
|
||||
$params = array('timestart1' => $timestart);
|
||||
$records = $DB->get_records_select('task_adhoc', $where, $params, 'nextruntime ASC, id ASC');
|
||||
|
||||
$records = $DB->get_records_select('task_adhoc', $where, $params, 'nextruntime ASC, id ASC', '*', 0, 2000);
|
||||
$records = self::ensure_adhoc_task_qos($records);
|
||||
|
||||
$cronlockfactory = \core\lock\lock_config::get_lock_factory('cron');
|
||||
|
||||
Reference in New Issue
Block a user