From 179baee96d37d1d7d9c3f9ccec731e80dc906769 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sun, 20 Dec 2020 12:22:50 +0100 Subject: [PATCH] fix celery task routes syntax error --- uncloud/settings.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/uncloud/settings.py b/uncloud/settings.py index bc99743..970c3e5 100644 --- a/uncloud/settings.py +++ b/uncloud/settings.py @@ -220,9 +220,7 @@ CELERY_TASK_ROUTES = (route_task,) CELERY_BROKER_URL = 'redis://:uncloud.example.com:6379/0' CELERY_RESULT_BACKEND = 'redis://:uncloud.example.com:6379/0' -CELERY_TASK_ROUTES = { - (re.compile(r'.*\.cdist\..*'), { 'queue': 'cdist' } - } +CELERY_TASK_ROUTES = ( [ (re.compile(r'.*\.cdist\..*'), { 'queue': 'cdist' }), ], ) # CELERY_TASK_CREATE_MISSING_QUEUES = False