My problem should be fairly simple and more interesting than something that needs to be desperately fixed. Google could not give me the answer I was looking for, so I hope your experience helps me. I use:
Django 1.4
Celery 2.5.5
Redis 2.4.10 (latest version on homebrew?)
And I start everything using follwing commands:
redis-server /usr/local/etc/redis.conf
foreman run python manage.py runserver
foreman run "python manage.py celeryd -E -B --loglevel=INFO"
foreman run python manage.py celerycam
In my settings.py, I have the following set of settings for Celery:
import djcelery
djcelery.setup_loader()
BROKER_URL = redis
CELERY_RESULT_BACKEND = 'redis'
CELERY_REDIS_HOST = "localhost"
CELERY_REDIS_PORT = 6379
CELERY_REDIS_DB = 0
CELERY_SEND_TASK_ERROR_EMAILS = True
CELERYBEAT_SCHEDULER = 'djcelery.schedulers.DatabaseScheduler'
CELERY_TASK_RESULT_EXPIRES = 172800
In this configuration, everything works, except for one:
With django-celery, you automatically get celery integration in the django admin (neatly!), You can check the status of all your tasks that have not expired, and also schedule new tasks, etc.
, , None. , , , , . , .
, , ?
:
, , , uuid .., , . ( , ), .
:
