messenger.yaml 959 B

1234567891011121314151617181920212223242526272829
  1. framework:
  2. messenger:
  3. failure_transport: failed
  4. transports:
  5. # https://symfony.com/doc/current/messenger.html#transport-configuration
  6. async:
  7. dsn: '%env(MESSENGER_TRANSPORT_DSN)%'
  8. options:
  9. use_notify: true
  10. check_delayed_interval: 60000
  11. retry_strategy:
  12. max_retries: 3
  13. multiplier: 2
  14. failed: 'doctrine://default?queue_name=failed'
  15. # sync: 'sync://'
  16. default_bus: messenger.bus.default
  17. buses:
  18. messenger.bus.default: []
  19. routing:
  20. Symfony\Component\Mailer\Messenger\SendEmailMessage: async
  21. Symfony\Component\Notifier\Message\ChatMessage: async
  22. Symfony\Component\Notifier\Message\SmsMessage: async
  23. # Route your messages to the transports
  24. # 'App\Message\YourMessage': async