Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Messenger] Add config option arguments for amqp delay queues #17553

Open
wants to merge 1 commit into
base: 7.1
Choose a base branch
from

Conversation

thomasbeaujean
Copy link

@thomasbeaujean thomasbeaujean commented Dec 11, 2022

Hi, this PR to allow to add extra arguments to the amqp delay queues that are automatically created.

@carsonbot carsonbot added this to the 6.3 milestone Dec 11, 2022
@OskarStark OskarStark changed the title [Messenger] Add config option 'arguments' for amqp delay queues [Messenger] Add config option arguments for amqp delay queues Dec 12, 2022
@javiereguiluz javiereguiluz added the Waiting Code Merge Docs for features pending to be merged label Jan 23, 2024
@carsonbot carsonbot modified the milestones: 6.3, next Jan 23, 2024
@nicolas-grekas
Copy link
Member

Code merged in 7.1

nicolas-grekas added a commit to symfony/symfony that referenced this pull request Feb 7, 2024
…lay queues (Thomas Beaujean)

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
-------

94ee8a2 [Messenger] Add config option 'arguments' for delay queues
symfony-splitter pushed a commit to symfony/amqp-messenger that referenced this pull request Feb 7, 2024
…lay queues (Thomas Beaujean)

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
@thomasbeaujean thomasbeaujean force-pushed the amqp-connection-delay-arguments branch from d90a84c to 85aa210 Compare February 13, 2024 08:43
@thomasbeaujean thomasbeaujean changed the base branch from 6.3 to 7.1 February 13, 2024 08:43
@thomasbeaujean
Copy link
Author

Hi, I rebase this doc PR on 7.1 (code merged in 7.1)

@OskarStark OskarStark removed the Waiting Code Merge Docs for features pending to be merged label Feb 13, 2024
@epitre
Copy link
Contributor

epitre commented Nov 25, 2024

@OskarStark @nicolas-grekas
this is not visible in 7.1 documentation : https://symfony.com/doc/current/messenger.html
image

Has it been merged/released ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants