-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[Logging] Please advise people to use reset() for long running processes #15086
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
Comments
Is this an issue for messenger workers? Should reset be called between jobs ( |
I'd say yes that would probably be a good idea. The one trade-off is that you lose context in case you have an issue that is triggered by something that happened in a previous job, but those are rather rare occurrences. |
In my worker implementations I typically do a reset() before starting processing the first job (so that any logging happening while spinning up a worker is cleared) and then after every job processed. |
symfony/symfony#40761 solves this I believe. |
Not really. I mean it solves it for messenger workers, but pretty much every project I work on has custom built long term processes, so I suspect this is a fairly common thing people do, and the logging docs should still mention reset() IMO. |
Thank you for this issue. |
Friendly ping? Should this still be open? I will close if I don't hear anything. |
Can be closed as #16609 is enough to keep track of this. |
See https://twitter.com/seldaek/status/1370115718499422208 for details.
The latest recipe has a buffer limit now so it's less of an issue I guess, but still reset is cleaner.
The text was updated successfully, but these errors were encountered: