Commit 67944074 by Bach Dániel

Merge branch 'feature-fix-celery' into 'master'

Feature fix celery

See merge request !1
parents 8fb40cc1 bba9377c
...@@ -8,12 +8,10 @@ from celery import Celery ...@@ -8,12 +8,10 @@ from celery import Celery
HOSTNAME = gethostname() HOSTNAME = gethostname()
AMQP_URI = getenv('AMQP_URI') AMQP_URI = getenv('AMQP_URI')
CACHE_URI = getenv('CACHE_URI')
celery = Celery('dnsdriver', broker=AMQP_URI) celery = Celery('dnsdriver', broker=AMQP_URI)
celery.conf.update( celery.conf.update(
CELERY_RESULT_BACKEND='cache', CELERY_RESULT_BACKEND='amqp',
CELERY_CACHE_BACKEND=CACHE_URI,
CELERY_TASK_RESULT_EXPIRES=300, CELERY_TASK_RESULT_EXPIRES=300,
CELERY_QUEUES=( CELERY_QUEUES=(
Queue(HOSTNAME + '.dns', Exchange( Queue(HOSTNAME + '.dns', Exchange(
......
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