Download the PHP package justbetter/laravel-horizon-restarter without Composer
On this page you can find all versions of the php package justbetter/laravel-horizon-restarter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download justbetter/laravel-horizon-restarter
More information about justbetter/laravel-horizon-restarter
Files in justbetter/laravel-horizon-restarter
Package laravel-horizon-restarter
Short Description Automatically restart Laravel Horizon
License MIT
Informations about the package laravel-horizon-restarter
Laravel Horizon Restarter
Automatically restart Horizon after a given amount of jobs.
Why?
PHP is not designed for long running processes, it can sometimes run into issues when it has been running for too long. Horizon workers can automatically be stopped after processing a configured amount of jobs (maxjobs). However, depending on the balanceMaxShift and balanceCooldown, it may take a while before all processes are running again. This package will automatically restart Horizon gracefully after a given amount of jobs have been processed.
This package is to simplify configuration and to ensure that Horizon is restarted automatically.
Installation
You can install the package via composer:
Configuration
By default, after 100.000 jobs have been processed, Horizon will be terminated.
This can be configured by adding the following to your .env
file:
Quality
To ensure the quality of this package, run the following command:
This will execute three tasks:
- Makes sure all tests are passed
- Checks for any issues using static code analysis
- Checks if the code is correctly formatted
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Ramon Rietdijk
- All Contributors
License
The MIT License (MIT). Please see License File for more information.