biigle / laravel-queue-alert
A package to send alert emails if a Laravel queue is very busy
Installs: 2 130
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- illuminate/cache: ^11.0
- illuminate/console: ^11.0
- illuminate/queue: ^11.0
- illuminate/support: ^11.0
- nesbot/carbon: ^2.67||^3.8
Requires (Dev)
- laravel/laravel: ^11.0
- phpunit/phpunit: ^10.0
README
A package to send alert emails if a Laravel queue is very busy.
Installation
composer require biigle/laravel-queue-alert
Usage
Set the QUEUE_ALERT_EMAIL
variable in your .env
file to the email address that should receive the alerts. By default, this package will send one alert email every hour when the default
queue of the default connection exceeds 1000 jobs.
Configuration
Run the following command to publish the configuration:
php artisan vendor:publish --tag=config --provider=\\Biigle\\QueueAlert\\QueueAlertServiceProvider
Multiple queues and connections
Add more items to the watch
array of the configuration. The default configuration already provides an example for an array antry. Alerts will be sent separately for each configured entry.
Report interval
Update the report_every_minutes
value for an entry in the watch
array. An alert is only send once every x minutes based on the configures value.
Report patience
Update the report_wait_minutes
value for an entry in the watch
array. If this is greater than 0, an alert will be sent only if the number of jobs exceeds the configured threshold for x minutes based on the configured value.