[rabbitmq-discuss] Consumer Priorities in Python

Michael Klishin michael.s.klishin at gmail.com
Tue Jan 14 17:29:02 GMT 2014

2014/1/14 Alex L <buzz42j at gmail.com>

> From looking at the code that's been modified, it looks like that I need
> to change the 'arguments' variable in basicConsume to be some 'x-priority'
> variable. Can something similar be done in Python (perhaps using pika 0.9.8
> that was used in the tutorials?), and if so how?

The arguments parameter is a dictionary. It needs to have an entry,
"x-priority": [priority].

> From searching on the internet, I've seen that others have tried to use
> multiple queues for different priorities, but that seems more like just
> using a direct fanout exchange compared to this method.

Consumer priorities have effect between consumers on a shared queue.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140114/7bd67daa/attachment.html>

More information about the rabbitmq-discuss mailing list