Switch result backend to redis

The AMQP result backend proved as impractical, this commit switches to
redis instead.
This commit is contained in:
Jan Dittberner 2016-01-31 20:34:54 +01:00
parent e9ee69f6e5
commit 7c6ed136eb
2 changed files with 3 additions and 3 deletions

View file

@ -287,8 +287,7 @@ USER_BASE_DN = get_env_variable('GVALDAP_BASEDN_USER')
########## CELERY CONFIGURATION ########## CELERY CONFIGURATION
BROKER_URL = get_env_variable('GVALDAP_BROKER_URL') BROKER_URL = get_env_variable('GVALDAP_BROKER_URL')
CELERY_RESULT_BACKEND = 'rpc://' CELERY_RESULT_BACKEND = get_env_variable('GVALDAP_RESULTS_REDIS_URL')
CELERY_RESULT_PERSISTENT = True
CELERY_TASK_RESULT_EXPIRES = None CELERY_TASK_RESULT_EXPIRES = None
CELERY_ROUTES = ( CELERY_ROUTES = (
'gvacommon.celeryrouters.GvaRouter', 'gvacommon.celeryrouters.GvaRouter',

View file

@ -4,6 +4,7 @@ bpython==0.13.2
django-braces==1.4.0 django-braces==1.4.0
django-model-utils==2.2 django-model-utils==2.2
logutils==0.3.3 logutils==0.3.3
celery==3.1.17 celery==3.1.20
passlib==1.6.2 passlib==1.6.2
requests==2.5.1 requests==2.5.1
redis==2.10.5