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

[11] Update DetectsLostConnections.php #52614

Merged

Conversation

webartisan10
Copy link
Contributor

I am utilizing Laravel Horizon for job processing, which leverages the Worker class from the Laravel framework, specifically located at Illuminate\Queue\Worker.php. This class employs the DetectsLostConnections trait to manage lost connections.

In my job implementations, I publish events to RabbitMQ. Consequently, Horizon operates workers continuously, leading to occasional connection losses with RabbitMQ. To mitigate this, I need to incorporate the following three connection lost messages to effectively detect these disconnections and ensure that my workers restart successfully.

This implementation will enhance the stability and reliability of the job processing system by automatically handling lost connections.

@taylorotwell taylorotwell merged commit 48cdbab into laravel:11.x Aug 31, 2024
29 checks passed
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.

2 participants