Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django Celery: Admin interface showing zero tasks/workers

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

like image 202
rubayeet Avatar asked Mar 27 '11 12:03

rubayeet


2 Answers

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

like image 165
asksol Avatar answered Sep 21 '22 21:09

asksol


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.

like image 8
Mo J. Mughrabi Avatar answered Sep 24 '22 21:09

Mo J. Mughrabi