I have a simple messanger config:
framework:
messenger:
failure_transport: failed
transports:
async:
dsn: '%env(MESSENGER_TRANSPORT_DSN)%'
retry_strategy:
max_retries: 2
delay: 10000
failed: 'doctrine://default?queue_name=failed'
routing:
someInterface: async
I would like to know about every message routed to failed transport f.e. system should send email notification to me when message is redirecting. My only idea is to periodically review messenger_messages
table which contains messages stored in failed transport but imao it's not symfony-way solution. Do you know more clever solution for this feature?
I am using symfony/messenger with version 5.*