Skip to content

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