[rabbitmq-discuss] Turning off prefetch in the asynchronous_consumer_example
Scott.Chapman at servicenow.com
Thu Mar 7 18:16:10 GMT 2013
Code from here:
I've tried putting the qos call here:
def on_channel_open(self, channel):
"""This method is invoked by pika when the channel has been opened.
The channel object is passed in so we can make use of it.
Since the channel is now open, we'll declare the exchange to use.
:param pika.channel.Channel channel: The channel object
self._channel = channel
It did not turn off prefetching. Messages still show up in RabbitMQ as Unacknowledged rather than Ready when I send one and send a 2nd before the 1st is done processing.
What am I missing?
I want to turn off prefetching.
I can't figure out how to turn it off on the Connection. That would be preferable, or turn it off globally.
Any clues GREATLY appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rabbitmq-discuss