Queue Check
Queue Check
Retrieves the current queue size from the configured connection.
Configuration
'checks_config' => [
'queue' => ['connection' => null], // null = default queue connection
],
Usage
use Cbox\LaravelHealth\Checks\QueueCheck;
'checks' => [
'readiness' => [
QueueCheck::class,
],
],
Behavior
- Reads the queue size from the configured connection
- Returns
okwithqueue_sizein metadata - Returns
criticalon connection failure