Skip to content

Commit 077a653

Browse files
committed
Fix queue ordering
1 parent 24a05dc commit 077a653

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/queue/src/Driver/DatabaseQueueDriver.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ function (Query $query) use ($now) {
105105
->where('reserved', '<', $now->modify('-' . $this->timeout . 'seconds'));
106106
}
107107
)
108+
->order('visibility', 'ASC')
109+
->order('id', 'ASC')
108110
->forUpdate($do);
109111

110112
$data = $this->db->transaction(

0 commit comments

Comments
 (0)