[rabbitmq-discuss] How to pause and resume consumption gracefully in rabbitmq?

Simon MacMullen simon at rabbitmq.com
Thu Dec 19 12:17:46 GMT 2013


Hmm. That looks like Pika is doing more than it should - it doesn't need 
to create a consumer tag if one is not supplied (the server will) and it 
also doesn't need to watch for duplicated consumer tags (resuming with 
the same tag is supported by the server).

Cheers, Simon

On 19/12/13 12:03, Михаил Доронин wrote:
> I'm using python library called pika, and I have a problem which I
> described in this question on stackoverlow.
>
> http://stackoverflow.com/questions/20651111/how-to-pause-and-resume-consumption-gracefully-in-rabbitmq-pika-python
>
> Basically, should I use the same consumer-tag or generate a new one if
> I'm resuming consumption?
>
> If I would generate a new one every time I'm resuming consumption then
> sooner or later it would match some of the previous ones and I would get
> an exception.
>
> четверг, 19 декабря 2013 г., 15:57:09 UTC+4 пользователь Alvaro Videla
> написал:
>
>     Hi,
>
>     basic.cancel will stop consuming from a queue. When you want to resume
>     consuming, you can just issue the same basic.consume you did before
>
>     Regards,
>
>     Alvaro
>
>     On Thu, Dec 19, 2013 at 12:49 PM, Михаил Доронин <warri... at gmail.com
>     <javascript:>> wrote:
>      > So...
>      >
>      > _______________________________________________
>      > rabbitmq-discuss mailing list
>      > rabbitmq... at lists.rabbitmq.com <javascript:>
>      >
>     https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>     <https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss>
>      >
>
>
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>


-- 
Simon MacMullen
RabbitMQ, Pivotal


More information about the rabbitmq-discuss mailing list