problem with priority queue in rabbitMq using pika

595 views
Skip to first unread message

naveen pajjuri

unread,
Sep 20, 2015, 1:38:32 PM9/20/15
to rabbitmq-users
Hi all,
I'm new to pika and rabbimq as well

The following piece of code throws error which im not able to debug.

data = dict()
data['x-max-priority'] = 7
channel.queue_declare(queue='hello',arguments= data)

throws the following error.

pika.exceptions.ChannelClosed: (406, "PRECONDITION_FAILED - inequivalent arg 'x-max-priority' for queue 'hello' in vhost '/': received the value '7' of type 'signedint' but current is none")

im attaching my entire code file for reference any help is hugely appreciated.

Thank you in advace,
Naveen.

rabbit.py

Alvaro Videla

unread,
Sep 20, 2015, 2:20:41 PM9/20/15
to rabbitm...@googlegroups.com

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages