QueueHealthCheck
If | Then.... |
---|---|
Queue takes more than 2 mins to process | 🚨 Fail |
Queue takes more than 45 seconds to process | ⚠️ Warn |
This check
Change queue name
By default, this check will listen to your default queue. You can listen to different queues by passing the queue name to the make method.
QueueHealthCheck::make('notification')
Change fail and warning thresholds
QueueHealthCheck::make()
->failAfterSeconds(120)
->warnAfterSeconds(45);
Change how frequently your queue is tested
By default, we will dispatch a test job every 10 minutes. You can change this setting like so:
QueueHealthCheck::make()
->dispatchEveryMinutes(5);