Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.3k
[Messenger] document reset_on_message transport option#15796
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
… between 2 messages (lyrixx)This PR was merged into the 5.4 branch.Discussion----------[Mesenger] Add support for reseting container services between 2 messages| Q | A| ------------- | ---| Branch? | 5.4| Bug fix? | no| New feature? | yes| Deprecations? | no| Tickets || License | MIT| Doc PR |symfony/symfony-docs#15796Without this patch, services are not resetted. For example MonologFinger Cross handler is never reset nor flushed. So if the firstmessage trigger and "error" level message, all others message will logand overflow the buffer.So, when a transport is **async** (it means it is run in a worker), it's highly preferable to this configuration onUsage with framework:```yamlframework: messenger: transports: async: dsn: '%env(MESSENGER_TRANSPORT_DSN)%' reset_on_message: true failed: 'doctrine://default?queue_name=failed' sync: 'sync://'```Commits-------488bb88 [Mesenger] Add support for resetting container services after each messenger message.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
lyrixx commentedSep 15, 2021
@OskarStark &@94noni thanks for the review. I have addressed your comments. |
Uh oh!
There was an error while loading.Please reload this page.
045fece to3f7ebceComparejaviereguiluz commentedOct 4, 2021
Thanks Grég for this nice contribution! I did some minor rewords while merging, but the core of your contribution remained. Cheers! |
refssymfony/symfony#41163