forked from uncloud/uncloud
fix celery task routes syntax error
This commit is contained in:
parent
054886fd9c
commit
179baee96d
1 changed files with 1 additions and 3 deletions
|
@ -220,9 +220,7 @@ CELERY_TASK_ROUTES = (route_task,)
|
||||||
CELERY_BROKER_URL = 'redis://:uncloud.example.com:6379/0'
|
CELERY_BROKER_URL = 'redis://:uncloud.example.com:6379/0'
|
||||||
CELERY_RESULT_BACKEND = 'redis://:uncloud.example.com:6379/0'
|
CELERY_RESULT_BACKEND = 'redis://:uncloud.example.com:6379/0'
|
||||||
|
|
||||||
CELERY_TASK_ROUTES = {
|
CELERY_TASK_ROUTES = ( [ (re.compile(r'.*\.cdist\..*'), { 'queue': 'cdist' }), ], )
|
||||||
(re.compile(r'.*\.cdist\..*'), { 'queue': 'cdist' }
|
|
||||||
}
|
|
||||||
|
|
||||||
# CELERY_TASK_CREATE_MISSING_QUEUES = False
|
# CELERY_TASK_CREATE_MISSING_QUEUES = False
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue