Skip to content

Commit 7790bb9

Browse files
committed
update
1 parent b0026c0 commit 7790bb9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

django_celery_example/settings.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,16 @@
169169
Queue('low_priority'),
170170
)
171171

172+
# manual task routing
173+
174+
# CELERY_TASK_ROUTES = {
175+
# 'django_celery_example.celery.*': {
176+
# 'queue': 'high_priority',
177+
# },
178+
# }
179+
180+
# dynamic task routing
181+
172182
def route_task(name, args, kwargs, options, task=None, **kw):
173183
if ':' in name:
174184
queue, _ = name.split(':')

0 commit comments

Comments
 (0)