amqp

Right way to cancel rabbitmq consuming with pika

Right way to cancel rabbitmq consuming with pika Question: I want to implement rpc client using rabbitmq. My code primarily looks like def start(self): while True: self.channel.basic_consume(self.on_delivery) … client.start() // blocking call What is right way to stop this client ? Now I make channel.basic_cancel(self.on_cancel, self.consumer_tag) from another thread. However pika faq says It is …

Total answers: 2

Celery does not release memory

Celery does not release memory Question: It looks like celery does not release memory after task finished. Every time a task finishes, there would be 5m-10m memory leak. So with thousands of tasks, soon it will use up all memory. BROKER_URL = ‘amqp://user@localhost:5672/vhost’ # CELERY_RESULT_BACKEND = ‘amqp://user@localhost:5672/vhost’ CELERY_IMPORTS = ( ‘tasks.tasks’, ) CELERY_IGNORE_RESULT = True …

Total answers: 6

Get Queue Size in Pika (AMQP Python)

Get Queue Size in Pika (AMQP Python) Question: Simple question, but Google or the Pika open source code did not help. Is there a way to query the current queue size (item counter) in Pika? Asked By: Sebastian || Source Answers: There are two ways to get the queue size in the AMQP protocol. You …

Total answers: 5

Good Python library for AMQP

Good Python library for AMQP Question: Can you recommend what Python library to use for accessing AMQP (RabbitMQ)? From my research pika seems to be the preferred one. Asked By: Meh || Source Answers: Pika is the RabbitMQ recommended library, and py-ampqlib is also mentioned. Depending on what you’re using Rabbit for, you might also …

Total answers: 4

How can I list or discover queues on a RabbitMQ exchange using python?

How can I list or discover queues on a RabbitMQ exchange using python? Question: I need to have a python client that can discover queues on a restarted RabbitMQ server exchange, and then start up a clients to resume consuming messages from each queue. How can I discover queues from some RabbitMQ compatible python api/library? …

Total answers: 9