Skip to main content

QueueHealthCheck

IfThen....
Queue takes more than 2 mins to process🚨 Fail
Queue takes more than 45 seconds to process⚠️ Warn

👀 View source on Github

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);