Skip to content

Scaling celeryworker service each with different queue #3427

Answered by vladdoster
koztay asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @koztay ,

You might try looking at these articles

article 1 & article 2

Basically you want to create Celery routes which designates a task to a certain queue

CELERY_ROUTES = { 'core.tasks.too_long_task': {'queue': 'too_long_queue'}, 'core.tasks.quick_task': {'queue': 'quick_queue'},}

Next, you can scale up queues as needed

Scaling queues

celery --app=proj_name worker -Q too_long_queue -c 2

celery --app=proj_name worker -Q quick_queue -c 2

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by browniebroke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #2030 on November 21, 2021 13:07.