问题描述
我正在使用Django,Celery和Django-Celery.我想监视任务的状态/结果,但是我对如何执行此操作感到有些困惑.
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.
我是否使用./manage.py celeryev
,./manage.py celerymon
,./manage.py celerycam
?我可以运行sudo /etc/init.d/celeryevcam start
吗?
Do I use ./manage.py celeryev
, ./manage.py celerymon
, ./manage.py celerycam
? Do I run sudo /etc/init.d/celeryevcam start
?
推荐答案
运行:
./manage.py celeryd -E
./manage.py celerycam
第一个启动启用了事件的工作程序.
The first starts a worker with events enabled.
现在,您可以在django管理界面中找到任务结果.确保您的INSTALLED_APPS中有djcelery.如果您想查看任务状态,请同时使用celerymon.
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.
这篇关于监控芹菜,我应该使用什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!