Commit 0cc1f1e3 by Guba Sándor

netcelery: updated to cache backend

parent 547d0617
......@@ -4,13 +4,14 @@ from socket import gethostname
from os import getenv
HOSTNAME = gethostname()
AMQP_URI = getenv('AMQP_URI')
CACHE_URI = getenv('CACHE_URI')
celery = Celery('netdriver', backend='amqp',
celery = Celery('netdriver', backend='cache',
broker=AMQP_URI,
include=['netdriver'])
celery.conf.update(
CELERY_CACHE_BACKEND=CACHE_URI,
CELERY_TASK_RESULT_EXPIRES=300,
CELERY_QUEUES=(
Queue(HOSTNAME + '.net', 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