importing CELERY* environment variables in django settings.py causes celeryd not to start
Posted
by
Taras
on Stack Overflow
See other posts from Stack Overflow
or by Taras
Published on 2012-07-07T03:07:42Z
Indexed on
2012/07/07
3:15 UTC
Read the original article
Hit count: 249
django-celery
I just spent 2 hours trying to figure out why django celery stopped working.
Celery would being to start, but would stop short of printing out the configuration items, implying that it wasn't starting correct. The log would only contain
The
celery.decorators
module along with the magic keyword arguments,
are deprecated, and will be removed in version 3.0.
Please use the celery.task
module instead of celery.decorators
,
and the task.request
should be used instead of the magic keyword arguments:
from celery.task import task
See http://bit.ly/celery22major for more information.
"""))
It turns out that some celery env variables that I was importing to try and fix a different problem were causing celery not to start correctly:
from celery.tests.config import CELERY_QUEUES, CELERY_DEFAULT_QUEUE, CELERY_DEFAULT_ROUTING_KEY
Even though I wasn't using them anywhere.
Does anyone know what was happening?
© Stack Overflow or respective owner