Skip to content
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

[dbal] add priority support on transport level. #198

Merged
merged 1 commit into from
Sep 13, 2017

Conversation

makasim
Copy link
Member

@makasim makasim commented Sep 13, 2017

It also fixes ordering issue.

@makasim makasim merged commit 488c5d8 into master Sep 13, 2017
@makasim makasim deleted the dbal-add-priority-support branch September 13, 2017 06:48
@@ -176,7 +176,7 @@ protected function receiveMessage()
->where('queue = :queue')
->andWhere('(delayed_until IS NULL OR delayed_until <= :delayedUntil)')
->orderBy('priority', 'desc')
->addOrderBy('id', 'asc')
->addOrderBy('id', 'desc')
Copy link
Contributor

Choose a reason for hiding this comment

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

Won't this change it from a fifo queue to a lifo queue?

Copy link
Member Author

Choose a reason for hiding this comment

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

I messed up everything. I must've fixed priority ordering not id.

ASKozienko pushed a commit that referenced this pull request Nov 2, 2018
[dbal] add priority support on transport level.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants