Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Mesenger] Add support for reseting container services between 2 messages #41163

Merged
merged 1 commit into from
Sep 10, 2021

Commits on Sep 10, 2021

  1. [Mesenger] Add support for resetting container services after each me…

    …ssenger message.
    
    Without this patch, services are not resetted. For example Monolog
    Finger Cross handler is never reset nor flushed. So if the first
    message trigger and "error" level message, all others message will log
    and overflow the buffer.
    
    Usage with framework:
    
    ```yaml
    framework:
        messenger:
            transports:
                async:
                    dsn: '%env(MESSENGER_TRANSPORT_DSN)%'
                    reset_on_message: true
                failed: 'doctrine://default?queue_name=failed'
                sync: 'sync://'
    ```
    lyrixx committed Sep 10, 2021
    Configuration menu
    Copy the full SHA
    488bb88 View commit details
    Browse the repository at this point in the history