Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d21c8ac

Browse files
authored
Order by publish_date within priorities
1 parent 11dc9f4 commit d21c8ac

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/dbal/DbalConsumer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ private function fetchPrioritizedMessage($now)
213213
->andWhere('priority IS NOT NULL')
214214
->andWhere('(delayed_until IS NULL OR delayed_until <= :delayedUntil)')
215215
->addOrderBy('priority', 'desc')
216+
->addOrderBy('published_at', 'asc')
216217
->setMaxResults(1)
217218
;
218219

0 commit comments

Comments
 (0)