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
?
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With