Switched to django celery results database backend

This commit is contained in:
Sam Collins 2017-10-04 18:08:09 +01:00
parent 3c3f5436b4
commit 58fbfc5621
1 changed files with 4 additions and 8 deletions

View File

@ -369,13 +369,9 @@ LOGIN_URL = 'account_login'
# SLUGLIFIER # SLUGLIFIER
AUTOSLUG_SLUGIFY_FUNCTION = 'slugify.slugify' AUTOSLUG_SLUGIFY_FUNCTION = 'slugify.slugify'
########## CELERY # CELERY
# CELERY_BROKER_URL = env('CELERY_BROKER_URL', default='redis://')
CELERY_BROKER_URL = env('CELERY_BROKER_URL', default='redis://redis:6379/0') CELERY_BROKER_URL = env('CELERY_BROKER_URL', default='redis://redis:6379/0')
#if CELERY_BROKER_URL == 'django://': CELERY_RESULT_BACKEND = 'django-db'
# CELERY_RESULT_BACKEND = 'redis://'
#else:
CELERY_RESULT_BACKEND = 'redis://redis:6379/0'
CELERY_IGNORE_RESULT = False CELERY_IGNORE_RESULT = False
CELERY_REDIS_HOST = "redis" CELERY_REDIS_HOST = "redis"
CELERY_REDIS_PORT = 6379 CELERY_REDIS_PORT = 6379
@ -387,7 +383,7 @@ CELERY_TIMEZONE = 'UTC'
CELERY_ENABLE_UTC = True CELERY_ENABLE_UTC = True
CELERY_TASK_SERIALIZER = 'json' CELERY_TASK_SERIALIZER = 'json'
CELERY_RESULT_SERIALIZER = 'json' CELERY_RESULT_SERIALIZER = 'json'
########## END CELERY # END CELERY
# django-compressor # django-compressor
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------