
Deployment Scripts
Inside the deployment script, do add the command below and on each deployment, it will gracefully terminate the master Horizon process on the machine. Any of the jobs that horizon is processing will be completed then horizon will exit.
// existing deployment scripts // command to terminate laravel horizon php artisan horizon:terminate

By having a daemon, the horizon instance will automatically be restarted by the process monitor such as the supervisor upon each successful deployment.

By now you should know How to Terminate Horizon during Deployment in Laravel Forge. If you find this tutorial to be helpful do make sure to share it with your friends and happy learning.