- [Show page]
- [Old revisions]
- [[unknown link type]]
- []
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
python:celery [2015/06/22 14:44] vondra [Django Integration] |
python:celery [2015/06/22 16:08] vondra [Django Integration] |
||
---|---|---|---|
Line 17: | Line 17: | ||
http://celery.readthedocs.org/en/latest/django/first-steps-with-django.html | http://celery.readthedocs.org/en/latest/django/first-steps-with-django.html | ||
- Create project celery config projectname/celery.py: <code python> | - Create project celery config projectname/celery.py: <code python> | ||
- | ffrom __future__ import absolute_import | + | from __future__ import absolute_import |
import os | import os | ||
Line 78: | Line 78: | ||
CELERYBEAT_SCHEDULER = 'djcelery.schedulers.DatabaseScheduler' | CELERYBEAT_SCHEDULER = 'djcelery.schedulers.DatabaseScheduler' | ||
CELERY_RESULT_BACKEND = 'djcelery.backends.database:DatabaseBackend' | CELERY_RESULT_BACKEND = 'djcelery.backends.database:DatabaseBackend' | ||
+ | </code> | ||
+ | - Run celery watcher: <code bash>./manage.py celeryd -E</code> | ||
+ | - Optionaly: run celerycam and celerymon to enable the monitoring via DB:<code bash> | ||
+ | ./manage.py celerycam | ||
+ | ./manage.py celerymon | ||
</code> | </code> |
python/celery.txt · Last modified: 2015/06/22 16:13 by vondra