Django Celery: Admin interface showing zero tasks/workers

大憨熊 提交于 2019-12-03 04:48:28

问题


I've setup Celery with Django ORM as back-end. Trying to monitor what's going on behind the scene.

  • I've started celeryd with -E flag python manage.py celeryd -E -l INFO -v 1 -f /path/to/celeryd.log

  • Started celerycam with default snapshot frequency of 1 second.python mannage.py celerycam

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?

My software stack: Django 1.1, Celery 2.2.4, Python 2.4


回答1:


The event snapshots doesn't currently work with the Django ORM transport.




回答2:


I don't know if this will be helpful, but did you try running ./manage.py celerycam, it will capture the data into the database every 1 seconds thus you will be able to see online workers and tasks in the django admin interface.



来源:https://stackoverflow.com/questions/5449163/django-celery-admin-interface-showing-zero-tasks-workers

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!