aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilo Casagrande <milo.casagrande@linaro.org>2015-01-22 11:26:02 +0100
committerMilo Casagrande <milo.casagrande@linaro.org>2015-01-22 11:26:02 +0100
commit6e6fc73aa9b928e1486da1ec61884acec64c3cc1 (patch)
treedc9a9ef9e073828091de217a2579f8c342a94071
parentccc5ee350e244533a62f21a3dd6921a3a4a46ed1 (diff)
Fix celery task definition.
Change-Id: I1a37a1cd3b7a65773394c2863ea9636907d11f15
-rw-r--r--app/taskqueue/celeryconfig.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/app/taskqueue/celeryconfig.py b/app/taskqueue/celeryconfig.py
index a42eb12..9624262 100644
--- a/app/taskqueue/celeryconfig.py
+++ b/app/taskqueue/celeryconfig.py
@@ -15,14 +15,15 @@
"""Celery configuration values."""
-BROKER_URL = 'redis://localhost'
-CELERY_ACCEPT_CONTENT = ['json']
-CELERY_RESULT_SERIALIZER = 'json'
-CELERY_TASK_SERIALIZER = 'json'
+BROKER_URL = "redis://localhost"
+BROKER_POOL_LIMIT = 20
+CELERY_ACCEPT_CONTENT = ["json"]
+CELERY_RESULT_SERIALIZER = "json"
+CELERY_TASK_SERIALIZER = "json"
CELERY_ENABLE_UTC = True
CELERY_DISABLE_RATE_LIMITS = True
-CELERY_RESULT_BACKEND = 'mongodb://localhost'
+CELERY_RESULT_BACKEND = "mongodb://localhost"
CELERY_MONGODB_BACKEND_SETTINGS = {
- 'database': 'celery-kernelci',
- 'taskmeta_collection': 'celery-results'
+ "database": "celery-kernelci",
+ "taskmeta_collection": "celery-results"
}