Commit df89c7aa by Szeberényi Imre

CELERY_RESULT_BACKEND fix (->amqp)

parent abfd214b
...@@ -17,11 +17,12 @@ AMQP_URI = getenv('AMQP_URI') ...@@ -17,11 +17,12 @@ AMQP_URI = getenv('AMQP_URI')
celery = Celery('tasks',) celery = Celery('tasks',)
celery.conf.update(CELERY_TASK_RESULT_EXPIRES=300, celery.conf.update(CELERY_TASK_RESULT_EXPIRES=300,
BROKER_URL=AMQP_URI, BROKER_URL=AMQP_URI,
CELERY_CACHE_BACKEND=CACHE_URI,
CELERY_RESULT_EXCHANGE_TYPE='direct',
CELERY_RESULT_PERSISTENT=True,
CELERY_RESULT_BACKEND='amqp',
CELERY_CREATE_MISSING_QUEUES=True) CELERY_CREATE_MISSING_QUEUES=True)
celery.conf.update(CELERY_CACHE_BACKEND=CACHE_URI,
CELERY_RESULT_BACKEND='cache')
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment