Mercurial > public > sg101
changeset 946:87fda1bb8d38
New celery options for Django 1.7.7 upgrade.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 16 May 2015 14:26:34 -0500 |
parents | 7ab180ff6f7b |
children | 49646a78e965 |
files | sg101/settings/base.py |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/sg101/settings/base.py Wed May 13 20:29:23 2015 -0500 +++ b/sg101/settings/base.py Sat May 16 14:26:34 2015 -0500 @@ -208,11 +208,17 @@ ####################################################################### BROKER_URL = 'redis+socket:///var/run/redis/redis.sock?virtual_host=1' BROKER_POOL_LIMIT = 10 +BROKER_TRANSPORT_OPTIONS = { + 'fanout_prefix': True, + 'fanout_patterns': True, +} CELERY_TIMEZONE = TIME_ZONE CELERY_TASK_SERIALIZER = 'json' CELERY_ACCEPT_CONTENT = ['json'] CELERY_IGNORE_RESULT = True +# Set this when we want results: +#CELERY_RESULT_BACKEND = 'redis+socket:///var/run/redis/redis.sock?virtual_host=1&new_join=1' CELERY_DISABLE_RATE_LIMITS = True CELERY_SEND_TASK_ERROR_EMAILS = True