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
This PR was merged into the 7.1 branch.
Discussion
----------
[Messenger][Amqp] Add config option 'arguments' for delay queues
| Q | A
| ------------- | ---
| Branch? | 6.3
| Bug fix? | no
| New feature? | yes
| Deprecations? | no
| Tickets | Fix #44186 #46254
| License | MIT
| Doc PR | symfony/symfony-docs#17553
Hi, this PR to allow to add extra arguments to the amqp delay queues that are automatically created.
The use case:
- I do not know in advance the name of the queues (handled by env variables)
- The queues are created automatically by symfony if needed
- I need the deduplication plugin in both the queue and the associated delays queues (enabled with the x-message-deduplication argument)
- I do not want to rewrite all delay arguments, I just want to be able to add or rewrite some
The associated configuration in messenger.yaml
```
transports:
async:
dsn: '%env(MESSENGER_DSN)%'
options:
queues:
'%env(MESSENGER_ASYNC_QUEUE_NAME)%':
arguments:
x-queue-type: 'classic'
x-message-deduplication: true
delay:
arguments:
x-queue-type: 'classic'
x-message-deduplication: true
```
Commits
-------
94ee8a22b5 [Messenger] Add config option 'arguments' for delay queues
0 commit comments