Skip to content

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 ok with queue_size in metadata
  • Returns critical on connection failure