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

Avoid OutOfMemoryException #725

Merged
merged 1 commit into from Jan 15, 2019
Merged

Conversation

DamienHarper
Copy link
Contributor

We're currently using enqueue 0.9.4 and monolog 1.24.0 in a symfony 4.2.2 project.

We're getting OutOfMemoryException when an exception is thrown from a processor. After digging a little bit in the code base, we found that monolog loops indefinitely trying to reach every previous exception.

It looks like that the previous attribute should be set only if the original exception (coming from a processor) is strictly different than the one re-thrown by the QueueConsumer at L314)

`previous` attribute should not reference itself
@DamienHarper DamienHarper changed the title Avoid OutOfMemory exception Avoid OutOfMemoryException Jan 15, 2019
@makasim makasim merged commit 1eb6b85 into php-enqueue:master Jan 15, 2019
@makasim makasim added the bug label Jan 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants