Skip to content

Commit da5a70a

Browse files
author
Symphosize
committed
Merge pull request #2 from Symphosize/features/priority
adding priority sorting to the CronTask model
2 parents e07840e + d6a7d3a commit da5a70a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Model/CronTask.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ public function requestJob($capabilities, $group = null) {
132132
'timediff(NOW(),notbefore) AS age'
133133
],
134134
'order' => [
135+
'priority ASC',
135136
'age DESC',
136137
'id ASC'
137138
],

0 commit comments

Comments
 (0)