Skip to content

Commit

Permalink
Merge pull request #8 from ghindle/ordered-jobs-on-db
Browse files Browse the repository at this point in the history
Enforce ordered popping of jobs off the database queue
  • Loading branch information
ianmjones authored Feb 2, 2024
2 parents 5da974a + 46900f8 commit e790043
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WP_Queue/Connections/DatabaseConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function pop() {
SELECT * FROM {$this->jobs_table}
WHERE reserved_at IS NULL
AND available_at <= %s
ORDER BY available_at
ORDER BY available_at, id
LIMIT 1
", $this->datetime() );

Expand Down

0 comments on commit e790043

Please sign in to comment.