feat: use redis as messenger transport

This commit is contained in:
Maël Gangloff 2025-10-30 11:36:43 +01:00
parent 5e23e5527e
commit d04c1ea48a
No known key found for this signature in database
GPG Key ID: 11FDC81C24A7F629
2 changed files with 11 additions and 2 deletions

4
.env
View File

@ -55,8 +55,8 @@ MESSENGER_CONSUMER_NAME=worker
# Choose one of the transports below
# MESSENGER_TRANSPORT_DSN=amqp://guest:guest@localhost:5672/%2f/messages
# MESSENGER_TRANSPORT_DSN=redis://localhost:6379/messages
MESSENGER_ASYNC_TRANSPORT_DSN=doctrine://default?auto_setup=0
MESSENGER_RDAP_ASYNC_TRANSPORT_DSN=doctrine://default?auto_setup=0
MESSENGER_ASYNC_TRANSPORT_DSN=redis://localhost:6379/messages?lazy=1
MESSENGER_RDAP_ASYNC_TRANSPORT_DSN=redis://localhost:6379/messages-rdap?lazy=1
###< symfony/messenger ###

View File

@ -120,6 +120,15 @@ jobs:
--health-retries 5
ports:
- 5432:5432
valkey:
image: valkey/valkey:latest
options: >-
--health-cmd "valkey-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379
steps:
- name: Checkout code
uses: actions/checkout@v3