Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I view the enqueued tasks in RabbitMQ?

I'm using RabbitMQ as my message broker and my workers are Celery tasks. I'm trying to diagnose an issue where I'm enqueue tasks to RabbitMQ but Celery doesn't pick then up.

Is there a way I can check what tasks are enqueued in RabbitMQ? I'd like to see the date and time when they are enqueued, any ETA is specified, the arguments and the task name.

I haven't been able to find this information in the docs — maybe I've overlooked it — and was hoping that some of you might know an easy way to inspect the task queue. Thanks.

like image 875
Mridang Agarwalla Avatar asked Oct 24 '12 13:10

Mridang Agarwalla


People also ask

How do I check RabbitMQ data?

Once you've started the broker and installed the RabbitMQ management plugin, you'll have access to a built-in metrics UI. Point a browser to the root of the web server, e.g., localhost:15672 , to see a number of dashboards.

How do I check RabbitMQ logs?

RabbitMQ Debian and RPM packages will set up logrotate to run weekly on files located in default /var/log/rabbitmq directory. Rotation configuration can be found in /etc/logrotate. d/rabbitmq-server.


1 Answers

You can use Flower to monitor tasks in real time.

https://github.com/mher/flower

Check out also rabbitmqclt command which inspects RabbitMQ server status:

http://www.rabbitmq.com/man/rabbitmqctl.1.man.html

rabbitmqctl list_queues
like image 103
mher Avatar answered Oct 08 '22 14:10

mher