Merge branch 'MDL-68433-adhoc-task-lookahead' of https://github.com/brendanheywood/moodle

This commit is contained in:
Andrew Nicols
2020-04-29 08:22:27 +08:00
+1 -2
View File
@@ -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');