We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Inside AioPikaBroker class, I had to implement the following logic:
AioPikaBroker
class AioPikaBroker(AsyncBroker): ... async def declare_queues( self, channel: AbstractChannel, ) -> AbstractQueue: await channel.declare_queue( self._dead_letter_queue_name, **self._declare_queues_kwargs, ) args: dict[str, Any] = { "x-dead-letter-exchange": "", "x-dead-letter-routing-key": self._dead_letter_queue_name, "x-expires": int(timedelta(weeks=2).total_seconds()) * 1000, } ...
I initially tried to supply "x-expires" like this:
"x-expires"
AioPikaBroker(declare_queues_kwargs={"arguments": {"x-expires": 1000}})
But this wouldn't work, as there would be 2 kwargs
Proposition:
Merge args with declare_queues_kwargs["arguments"] if these additional arguments exist. I'm going to submit a related PR soon
args
declare_queues_kwargs["arguments"]
The text was updated successfully, but these errors were encountered:
declare_queue_kwargs["arguments"]
Successfully merging a pull request may close this issue.
Inside
AioPikaBroker
class, I had to implement the following logic:I initially tried to supply
"x-expires"
like this:But this wouldn't work, as there would be 2 kwargs
Proposition:
Merge
args
withdeclare_queues_kwargs["arguments"]
if these additional arguments exist. I'm going to submit a related PR soonThe text was updated successfully, but these errors were encountered: