Skip to content

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
@cyppe
Copy link
Contributor

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.

3 participants