class DatabaseQueueStatsProvider implements QueueStatsProvider

Queue stats for the database driver, read from the queue_jobs and queue_failed_jobs tables. A job is "reserved" (in-flight) once a worker has picked it up (reserved_at is set); otherwise it is pending.

Methods

__construct(ConnectionInterface $db)

No description

array
totals()

Aggregate counts across all queues on the active connection.

array
queues()

Per-queue pending/reserved counts, keyed by queue name.

Details

__construct(ConnectionInterface $db)

Parameters

ConnectionInterface $db

array totals()

Aggregate counts across all queues on the active connection.

Return Value

array

array queues()

Per-queue pending/reserved counts, keyed by queue name.

Return Value

array