From 1ef547f885733c75b639c10fc2b767a3397c9819 Mon Sep 17 00:00:00 2001 From: j Date: Sat, 20 Feb 2016 05:57:28 +0000 Subject: [PATCH] update celery integration --- pandora/settings.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pandora/settings.py b/pandora/settings.py index 97802735..b8056bb8 100644 --- a/pandora/settings.py +++ b/pandora/settings.py @@ -6,6 +6,8 @@ import os from os.path import join, normpath, dirname +import djcelery +djcelery.setup_loader() PROJECT_ROOT = normpath(dirname(__file__)) @@ -178,7 +180,11 @@ DATABASES = { } #rabbitmq connection settings -CELERY_RESULT_BACKEND = "database" +CELERY_RESULT_BACKEND = 'database' +CELERY_TASK_SERIALIZER = 'json' +CELERY_RESULT_SERIALIZER = 'json' +CELERY_ACCEPT_CONTENT = ['json'] + BROKER_URL = 'amqp://pandora:box@localhost:5672//pandora' SEND_CELERY_ERROR_EMAILS = False