use YAML for celery serialization
- add CELERY_ACCEPT_CONTENT, CELERY_TASK_SERIALIZER and CELERY_RESULT_SERIALIZER in gvaldap.settings.base - add pyaml to requirements/base.txt
This commit is contained in:
parent
1575725bcb
commit
5174e144ba
2 changed files with 3 additions and 1 deletions
|
@ -286,5 +286,6 @@ BROKER_URL = get_env_setting('GVALDAP_BROKER_URL')
|
||||||
CELERY_RESULT_BACKEND = 'amqp'
|
CELERY_RESULT_BACKEND = 'amqp'
|
||||||
CELERY_RESULT_PERSISTENT = True
|
CELERY_RESULT_PERSISTENT = True
|
||||||
CELERY_TASK_RESULT_EXPIRES = None
|
CELERY_TASK_RESULT_EXPIRES = None
|
||||||
CELERY_ACCEPT_CONTENT = ['pickle']
|
CELERY_ACCEPT_CONTENT = ['yaml']
|
||||||
|
CELERY_RESULT_SERIALIZER = 'yaml'
|
||||||
########## END CELERY CONFIGURATION
|
########## END CELERY CONFIGURATION
|
||||||
|
|
|
@ -10,3 +10,4 @@ passlib==1.6.2
|
||||||
billiard==3.3.0.17
|
billiard==3.3.0.17
|
||||||
kombu==3.0.16
|
kombu==3.0.16
|
||||||
pytz==2014.3
|
pytz==2014.3
|
||||||
|
pyaml==14.05.7
|
||||||
|
|
Loading…
Reference in a new issue