MDL-67980 tasks: Sort ad-hoc tasks by nextruntime.

This commit is contained in:
Mikhail Golenkov
2020-02-24 09:30:09 +11:00
parent 37b2ee3f64
commit e63040d02b
2 changed files with 47 additions and 1 deletions
+1 -1
View File
@@ -561,7 +561,7 @@ class manager {
$where = '(nextruntime IS NULL OR nextruntime < :timestart1)';
$params = array('timestart1' => $timestart);
$records = $DB->get_records_select('task_adhoc', $where, $params);
$records = $DB->get_records_select('task_adhoc', $where, $params, 'nextruntime ASC, id ASC');
$records = self::ensure_adhoc_task_qos($records);