-
Notifications
You must be signed in to change notification settings - Fork 116
Open
Description
The repman environment file has a section for symfony/messenger to allow you to choose a transport by configuring a DSN.
Lines 41 to 46 in 174c381
| ###> symfony/messenger ### | |
| # Choose one of the transports below | |
| # MESSENGER_TRANSPORT_DSN=amqp://guest:guest@localhost:5672/%2f/messages | |
| # MESSENGER_TRANSPORT_DSN=doctrine://default | |
| # MESSENGER_TRANSPORT_DSN=redis://localhost:6379/messages | |
| ###< symfony/messenger ### |
However the symfony/messenger config yaml has the doctrine transport hardcoded instead of using this environment variable
repman/config/packages/messenger.yaml
Lines 10 to 12 in 174c381
| transports: | |
| async: 'doctrine://default?auto_setup=false' | |
| failed: 'doctrine://default?queue_name=failed&auto_setup=false' |
Similarly only the symfony/doctrine-messenger is required in the composer.json file.
Line 58 in 174c381
| "symfony/doctrine-messenger": "5.3.*", |
It there any specific reason this was hardcoded to doctrine? I would like to use the redis transport as it allows multiple workers consuming the same queue.
Metadata
Metadata
Assignees
Labels
No labels