You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The problem
Currently
Producer
withauto_declare
set may have some unexpected semantics, at least to me :)Here's a very basic example that most people would have a good sense of what's going to happen:
It will make sure the default exchange is declared before sending the message to.
However, consider such code:
If not reading the
.publish()
docs one could misinterpret the outcomeSo now
Producer
will still try to declare the default exchange but publish to the "tasks" exchange:Potential change
What if
auto_declare
would try to declare the specified exchange instead?.publish()
has no exchange specified.publish()
otherwiseThe same way the exchange name is already resolved before publishing:
Beta Was this translation helpful? Give feedback.
All reactions