Skip to content

Commit

Permalink
107. failure transport and retry_strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
teebbstudios committed Jul 28, 2021
1 parent 151eb24 commit 2a5df6d
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions config/packages/messenger.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
framework:
messenger:
# Uncomment this (and the failed transport below) to send failed messages to this transport for later handling.
# failure_transport: failed
failure_transport: failed

transports:
# https://symfony.com/doc/current/messenger.html#transport-configuration
async: '%env(MESSENGER_TRANSPORT_DSN)%'
# failed: 'doctrine://default?queue_name=failed'
# async: '%env(MESSENGER_TRANSPORT_DSN)%'
async:
dsn: '%env(MESSENGER_TRANSPORT_DSN)%'
retry_strategy:
max_retries: 5
delay: 1000
multiplier: 3
failed: 'doctrine://default?queue_name=failed'
# sync: 'sync://'

routing:
Expand Down

0 comments on commit 2a5df6d

Please sign in to comment.