-
-
Notifications
You must be signed in to change notification settings - Fork 933
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
kombu.common.Broadcast does not accept custom queue name #1014
Comments
Might be a regression from #906? |
Looks like it would be. I am confused about why the changes in #906 were needed. with the changes described above, I can set up celery with the following
and tasks route as expected. |
A
My understanding was that That's what made sense to me based on the docs and looking around the code. A subclass that exists to make it a bit more convinent to do things. A definition to avoid re-writing a class that everyone needs. Does reverting #906 break anything in particular? I don't see why it would be odd to specifiy a unique queue name in scenarios where it would be needed. Generating a uuid based custom queue name and passing it to a Broadcast object seems more reasonable than having |
Just spent a few minutes tracking down where this was done, so for posterity this feature was introduced in #1033. |
the following happens at the moment
This behavior is inconsistent with the docs for the class which claims that you can pass along a queue name to override the default behavior of generating a unique one.
This, in turn, makes using
kombu.common.Broadcast
withcelery.Celerty.conf.task_queues
andcelery.Celerty.conf.task_routes
impossible since the queue is always different.changing the following line
kombu/kombu/common.py
Line 90 in d78a8fc
to
resolves the issue, however.
I can make a PR if there's interest.
The text was updated successfully, but these errors were encountered: