Regards
Wesley Peng
> --
> 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 view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/91e2e202-7200-46db-a6cb-d9c7f9a6a072%40googlegroups.com.
>
I don’t think priority should work in a stream like system. You don’t know during what time piece the priority should work. For static pool max priority could make the message ahead of any others. Just my thoughts, maybe not correct.Regards
Wesley Peng
> On Feb 3, 2020 - 3:53 PM, emptydr...@gmail.com wrote:
>
>
> Hello! I've set max priority for my queue, but messages are delivered in order they arrived.
>
> my mq version: 3.7.9
>
> Description: The priority is work when there are no consumers(That is, send the message and then start the consumer, the priority is work). But there are comsumers that is comsuming, the priority is not work, messages are delivered in order they arrived.
>
> I test with script (based on https://gist.github.com/michaelklishin/ec056aade6ba764a27cb1ba8ca187a42) given in (https://groups.google.com/forum/#!msg/rabbitmq-users/qJ_XIUfjJUM/6Z5XfkPrEQAJ)
>
> The script I actually use is : https://github.com/emptyknowledge/temporary/blob/master/rabbitmq_priority_not_work/priority.py
> The running result is : https://github.com/emptyknowledge/temporary/blob/master/rabbitmq_priority_not_work/run_result.png
>
> --
> 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 rabbitm...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/2b98086e-9e80-4ff8-9c21-18722a88bd57%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/2b98086e-9e80-4ff8-9c21-18722a88bd57%40googlegroups.com.
--Karl NilssonPivotal/RabbitMQ
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/65480d84-ea28-4d56-b6ea-14e15041cc47%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/65480d84-ea28-4d56-b6ea-14e15041cc47%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/f298f318-c68f-4abc-9b76-44793bdae420%40googlegroups.com.
ch.basic_consume(callback, q, no_ack=False, arguments={"x-priority": 10})
ch.basic_qos(prefetch_count=1)
ch.start_consuming()
ch.basic_consume(callback, q, no_ack=False, arguments={"x-priority": 10})
ch.start_consuming()
To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/f298f318-c68f-4abc-9b76-44793bdae420%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/86deb1c7-1025-4db8-b1f2-730252bad1f4%40googlegroups.com.