Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Celery workers do not respect queue #2508

Closed
tino opened this issue Feb 16, 2015 · 1 comment
Closed

Celery workers do not respect queue #2508

tino opened this issue Feb 16, 2015 · 1 comment

Comments

@tino
Copy link

tino commented Feb 16, 2015

I run a setup as I described here: http://stackoverflow.com/questions/28456500/celery-how-to-separate-different-environments-with-different-workers

$ celery -A website.celery list bindings
Queue                        Exchange                     Routing Key
----------------             ----------------             ----------------
myserver_development         celery                       celery
myserver                     celery                       celery
myserver_staging             celery                       celery

When I trigger a task in the development environment (with CELERY_DEFAULT_QUEUE = 'myserver_development'), I see the task being executed in all three queues.

@ask
Copy link
Contributor

ask commented Dec 10, 2015

You have to set all of CELERY_DEFAULT_QUEUE, CELERY_DEFAULT_EXCHANGE and CELERY_DEFAULT_ROUTING_KEY. Otherwise you will end up with three queues all bound to the same exchange and routing key.

Or use the method here which will set it up explicitly:
http://docs.celeryproject.org/en/latest/userguide/routing.html#changing-the-name-of-the-default-queue

@ask ask closed this as completed Dec 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants