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
Also, add a condition in Connection->setup to call setupDelayExchange only if delay exchange is not disabled (transport retry_strategy.max_retries equals 0 ? Not sure because delay may be use in other use cases than retry)
The text was updated successfully, but these errors were encountered:
transport retry_strategy.max_retries equals 0 ? Not sure because delay may be use in other use cases than retry
Not sure either.
OskarStark
changed the title
feat(messenger)[AMQP transport]: allow to opt out to autosetup delay exchange in configuration
[Messenger][AMQP] Allow to opt out to autosetup delay exchange in configuration
May 13, 2024
Description
It seems that we cannot configure symfony/messenger to prevent auto setup for delay exchange.
symfony/src/Symfony/Component/Messenger/Bridge/Amqp/Transport/Connection.php
Line 113 in 616c582
When an application is just a publisher but doesn't consume any queue, there is no need to auto setup a delay exchange.
I'm actually working on a PR about this.
Example
Proposal:
Add the option
auto_setup
for delay, default true.With this option, the delay exchange will not be declared there:
symfony/src/Symfony/Component/Messenger/Bridge/Amqp/Transport/Connection.php
Line 470 in 616c582
Also, add a condition in Connection->setup to call setupDelayExchange only if delay exchange is not disabled (transport retry_strategy.max_retries equals 0 ? Not sure because delay may be use in other use cases than retry)
The text was updated successfully, but these errors were encountered: