Django Celery:管理界面显示零个任务/工作人员 [英] Django Celery: Admin interface showing zero tasks/workers
问题描述
我已将Celery设置为Django ORM作为后端。试图监视幕后发生的事情。
I've setup Celery with Django ORM as back-end. Trying to monitor what's going on behind the scene.
-
我从-E开始
celeryd 标记
python manage.py celeryd -E -l INFO -v 1 -f /path/to/celeryd.log
启动 celerycam ,默认快照频率为1秒。 python mannage.py celerycam
Started celerycam with default snapshot frequency of 1 second.python mannage.py celerycam
我可以看到正在执行的任务(在芹菜日志中)和存储的结果(这些任务会定期更改数据模型)。但是,Django管理面板中的任务/工作人员页面显示零项。当我启动 celeryev (显示o事件/任务/工作人员)时,也会发生同样的事情。
I can see the tasks being executed(in the celery log) and results being stored(data models periodically being changed by those tasks). However the Task/Worker pages in Django admin panel showing zero items. Same thing happens when I start celeryev(shows o events/tasks/workers).
是否需要将其他配置设置更改为实现监控?
Is there any additional configuration settings need to be changed to achieve monitoring?
我的软件堆栈:Django 1.1,Celery 2.2.4,Python 2.4
My software stack: Django 1.1, Celery 2.2.4, Python 2.4
推荐答案
事件快照当前不适用于Django ORM传输。
The event snapshots doesn't currently work with the Django ORM transport.
这篇关于Django Celery:管理界面显示零个任务/工作人员的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!