framework:
    messenger:
        failure_transport: failed
        transports:
            async:
                dsn: '%env(MESSENGER_TRANSPORT_DSN)%'
                retry_strategy:
                    max_retries: 3
                    delay: 2000
                    multiplier: 2
                    max_delay: 0
            failed: 'doctrine://default?queue_name=failed'
            sync: 'sync://'
        routing:
            App\Message\ProcessProductMessage: async
            # Rulebook regen calls Vertex; route it async so rule / trusted-source / category
            # saves return instantly instead of blocking the request on the AI call.
            App\Message\RegenerateRulebookMessage: async

when@test:
    framework:
        messenger:
            transports:
                async: 'sync://'
