Skip to content

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

Merged
merged 4 commits into from
Sep 12, 2017

Conversation

vtsykun
Copy link
Contributor

@vtsykun vtsykun commented Sep 11, 2017

No description provided.

@makasim
Copy link
Member

makasim commented Sep 12, 2017

LGTM in general though there is issue with code style https://travis-ci.org/php-enqueue/enqueue-dev/jobs/274379202

@makasim makasim added the bug label Sep 12, 2017
@makasim
Copy link
Member

makasim commented Sep 12, 2017

@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.

@makasim makasim merged commit fdb6392 into php-enqueue:master Sep 12, 2017
@vtsykun vtsykun deleted the patch-1 branch September 12, 2017 22:30
@@ -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')
Copy link
Member

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

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ASKozienko pushed a commit that referenced this pull request Nov 2, 2018
Fixed losing message priority for dbal driver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants