[rabbitmq-discuss] return callback works only once

Anton Kirilenko anton.kirilenko at rosalab.ru
Mon Jul 16 15:20:12 BST 2012


On 07/16/2012 06:11 PM, Francesco Mazzoli wrote:
> At Mon, 16 Jul 2012 18:02:33 +0400,
> Anton Kirilenko wrote:
>> def return_callback(self, method, header, body):
>>           try:
>>               log.debug(str(method))
>>               log.debug(str(header))
>>               log.debug(str(body))
>>           except:
>>               log.exception('something happened')
>>
>> This is my callback function (I'm using python/pika). It raises no
>> exceptions and it is called only once. Should I add something else in
>> order to 'loop to always receive messages'?
> Ignore my previous message, I was thinking about the Erlang client's return
> handler, sorry about that. I haven't got much experience with pika, but if this
> is a bug it is most likely to be pika's fault, so you should report to the
> author as well.
>
> --
> Francesco * Often in error, never in doubt
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
Thanks for your help anyway :) The problem is solved as it's written in 
another message.


More information about the rabbitmq-discuss mailing list