Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Monitoring Celery, what should I use? [closed]

I'm using Django, Celery, and Django-Celery. I'd like to monitor the state/results of my tasks, but I'm a little confused on how to do that.

Do I use ./manage.py celeryev, ./manage.py celerymon, ./manage.py celerycam? Do I run sudo /etc/init.d/celeryevcam start?

like image 247
Seán Hayes Avatar asked Apr 27 '11 19:04

Seán Hayes


People also ask

How do you monitor a celery worker?

Now, open yet another terminal and enter command cd examples/queue-based-distribution/ and then enter celery -A celery-task-queue status as the basic monitoring command is status , which returns the state of the workers. The result of celery -A celery-task-queue status will be the status and the number of nodes online.

How do I check my celery status?

celery -A yourproject. app inspect status will give the status of your workers. celery -A yourproject. app inspect active will give you list of tasks currently running, etc.


1 Answers

Run:

./manage.py celeryd -E
./manage.py celerycam

The first starts a worker with events enabled.

Now you can find task results in the django admin interface. Ensure you have djcelery in your INSTALLED_APPS. If you want to see task state use also celerymon.

like image 173
vad Avatar answered Sep 23 '22 15:09

vad