Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Monitor Pending Celery Tasks

I'm using Celery with RabbitMQ backend. How can I monitor and get the number of pending tasks? "celery events" and djcelery shows the running and completed tasks. Should I be monitoring RabbitMQ? If so how?

like image 303
Ruggiero Spearman Avatar asked Oct 12 '25 12:10

Ruggiero Spearman


1 Answers

If you are using RabbitMq as broker, I recommend to use for that rabbitmqctl ( usually /usr/sbin/rabbitmqctl ). So command:

rabbitmqctl list_queues

Shows you number of tasks in queues. Other solution is installing rabbitmq-plugins: management plugin. You can do it with:

rabbitmq-plugins list
rabbitmq-plugins enable rabbitmq_management
service rabbitmq-server restart

Your rabbitmq-server will provide webagent where you can easily manage your rabbit-server.

like image 54
Rustem Avatar answered Oct 14 '25 14:10

Rustem