-
Notifications
You must be signed in to change notification settings - Fork 440
Fixed losing message priority for dbal driver #195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
LGTM in general though there is issue with code style https://travis-ci.org/php-enqueue/enqueue-dev/jobs/274379202 |
@vtsykun could you please add this spec test https://github.com/queue-interop/queue-spec/blob/master/src/SendAndReceivePriorityMessagesFromQueueSpec.php You can find out how to do it in other transport which use spec tests. For example amqp ext. |
@@ -176,7 +176,7 @@ protected function receiveMessage() | |||
->where('queue = :queue') | |||
->andWhere('(delayed_until IS NULL OR delayed_until <= :delayedUntil)') | |||
->orderBy('priority', 'desc') | |||
->orderBy('id', 'asc') | |||
->addOrderBy('id', 'asc') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it should be desc
. gonna fix it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed losing message priority for dbal driver
No description provided.