[Messenger] Fix stopwach usage if it has been reset#39598
Merged
fabpot merged 1 commit intosymfony:4.4from Dec 28, 2020
Merged
Conversation
Member
|
Can you please add a test case? |
Contributor
|
@lyrixx i plan to do the same thing on a personal project very soon, thx |
Member
Author
|
@nicolas-grekas Sure, i'll do :) @noniagriconomie It occurs in dev as I said
So I notice that in dev. I do not replace things in prod directly (yet) :) (huhu, this is a joke, no offence) |
27bda76 to
d0e1de8
Compare
6b8456d to
3e05325
Compare
Contributor
|
@lyrixx sorry I found no trace of this in the PR desc :s, thus my question :) |
src/Symfony/Component/Messenger/Middleware/TraceableMiddleware.php
Outdated
Show resolved
Hide resolved
3e05325 to
bf4b0cc
Compare
nicolas-grekas
approved these changes
Dec 28, 2020
fabpot
approved these changes
Dec 28, 2020
Member
|
Thank you @lyrixx. |
Merged
This was referenced Jul 8, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I'm slowly migrating an application to messenger (from swarrot) and I
hit a strange bug. My message was well processeed BUT retry!
It comes from two things
low memory usage)
stopwatch has been reset, an exception occurs and the message has been
retried
So this patch avoid throwing an exception when everything works well
the trace: