Skip to main content

Supervisor, Multiple Queue Workers and Horizon Again

Premium
4 min read

In development, you start queue:work manually in the terminal. But in production, you need the queue worker to run continuously and restart automatically if it crashes. That's where Supervisor comes in.


What is Supervisor?

Supervisor is a process monitor for Linux. It watches your queue worker processes and restarts them if they exit unexpectedly. Without it, a crashed worker simply stops processing jobs until someone notices and manually restarts it.


Installing Supervisor

On Ubuntu/Debian:

sudo apt-get install supervisor

Supervisor configuration files live in /etc/supervisor/conf.d/.


Configuring a Queue Worker

Create a configuration file for your Laravel...

The Full Lesson is Only for Premium Members

Want to access all of our courses? (34 h 11 min)

You also get:

58 courses
Premium tutorials
Access to repositories
Private Discord
Get Premium for $129/year or $29/month

Already a member? Login here

Comments & Discussion

No comments yet…

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.