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

[10.x] Prevent Redis connection error report flood on queue worker #50812

Merged
merged 1 commit into from
Mar 28, 2024

Conversation

kasus
Copy link
Contributor

@kasus kasus commented Mar 28, 2024

Given setup of Laravel with Horizon, using Redis as a queue driver via phpredis.

In case of connection issue with Redis, every running worker starts continuously reporting RedisException, which leads to a large flood of errors into the error reporting system.

I believe it has to be prevented by Illuminate/Queue/Worker.php:372 call of $this->stopWorkerIfLostConnection($e); but it doesn't happen for phpredis exception.

@kasus kasus changed the title Prevent Redis connection error report flood on queue worker [10.x] Prevent Redis connection error report flood on queue worker Mar 28, 2024
@taylorotwell taylorotwell merged commit 7bc70f2 into laravel:10.x Mar 28, 2024
26 checks passed
@cyppe
Copy link

cyppe commented Apr 10, 2024

Bravo! I have experienced this many times. Let's hope I never will see it again :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants