PREFETCH_COUNT = 10
def __init__(self, amqp_url):
def on_bindok(self, unused_frame):
ip_spotlight_log.info("%s > Queue bound", sys.argv[1])
self._channel.basic_qos(prefetch_count=self.PREFETCH_COUNT, prefetch_size=0)
self.start_consuming()def on_message(self, unused_channel, basic_deliver, properties, body):
ip_spotlight_log.info("%s > Received message # %s from %s: %s", sys.argv[1], basic_deliver.delivery_tag, properties.app_id, body)
self.acknowledge_message(basic_deliver.delivery_tag)
sys.exit()2015-10-12 21:04:11.369 : INFO : SNIP : on_message : SNIP > Received message # 1 from SNIP: SNIP
2015-10-12 21:04:11.369 : INFO : SNIP : acknowledge_message : SNIP > Acknowledging message 1
--
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.
--
You received this message because you are subscribed to a topic in the Google Groups "rabbitmq-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rabbitmq-users/NfmlMAO4it0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rabbitmq-user...@googlegroups.com.