Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[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

Merged
javiereguiluz merged 1 commit intosymfony:5.4fromlyrixx:messenger-reset
Oct 4, 2021

Conversation

@lyrixx
Copy link
Member

fabpot added a commit to symfony/symfony that referenced this pull requestSep 10, 2021
… 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.
@OskarStarkOskarStark added this to the5.4 milestoneSep 11, 2021
@lyrixx
Copy link
MemberAuthor

@OskarStark &@94noni thanks for the review. I have addressed your comments.

@javiereguiluz
Copy link
Member

Thanks Grég for this nice contribution! I did some minor rewords while merging, but the core of your contribution remained. Cheers!

@lyrixxlyrixx deleted the messenger-reset branchOctober 4, 2021 13:51
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@OskarStarkOskarStarkOskarStark left review comments

+1 more reviewer

@94noni94noni94noni left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

5.4

Development

Successfully merging this pull request may close these issues.

5 participants

@lyrixx@javiereguiluz@OskarStark@94noni@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp