Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Clarification about mandatory Flag in Produce Class #1039
Comments
|
PR is welcome |
|
@auvipy thank you, |
|
@Gsantomaggio the answer is because mandatory flag was added in 2010 by @ask and added to the docstrings as not supported and passed along all the way into the transports basic_publish kwargs and then never used within kombu, but the kwargs are sometimes passed for example in the virtual base transport it passed it to self._put which seems to ignore it, but perhaps some transport has been implemented that could use a mandatory flag? I am not sure the intention but it kind of feels like something that isn't mandatory and could be removed from the code base if you ask me.
|
Hi,
Why the
mandatoryflag is marked asnot_supportedon the documentation and inside the code?I tried it and seems to work correctly:
env:
code:
result:
312 NO_ROUTEis exactly the AMQP error codeThank you