celery不再使用pickle,避免可能的安全风险

This commit is contained in:
virusdefender 2016-04-24 15:59:20 +08:00
parent 0166008ce1
commit bd57e82105
No known key found for this signature in database
GPG Key ID: 1686FB5677979E61
2 changed files with 4 additions and 2 deletions

View File

@ -30,7 +30,8 @@ REDIS_QUEUE = {
# for celery
BROKER_URL = 'redis://%s:%s/%s' % (REDIS_QUEUE["host"], str(REDIS_QUEUE["port"]), str(REDIS_QUEUE["db"]))
ACCEPT_CONTENT = ['json']
CELERY_ACCEPT_CONTENT = ["json"]
CELERY_TASK_SERIALIZER = "json"
DEBUG = True

View File

@ -39,7 +39,8 @@ REDIS_QUEUE = {
# for celery
BROKER_URL = 'redis://%s:%s/%s' % (REDIS_QUEUE["host"], str(REDIS_QUEUE["port"]), str(REDIS_QUEUE["db"]))
ACCEPT_CONTENT = ['json']
CELERY_ACCEPT_CONTENT = ["json"]
CELERY_TASK_SERIALIZER = "json"
DEBUG = False