Commit 221b5070 by Guba Sándor

updated to memchached backend

parent 9aa9bad1
......@@ -8,10 +8,12 @@ from celery import Celery
HOSTNAME = gethostname()
AMQP_URI = getenv('AMQP_URI')
CACHE_URI = getenv('CACHE_URI')
celery = Celery('dnsdriver', backend='amqp', broker=AMQP_URI)
celery = Celery('dnsdriver', broker=AMQP_URI)
celery.conf.update(
CELERY_RESULT_BACKEND='cache',
CELERY_CACHE_BACKEND=CACHE_URI,
CELERY_TASK_RESULT_EXPIRES=300,
CELERY_QUEUES=(
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