Skip to content

InspectableFailedJobStoreInterface

A FailedJobStoreInterface whose dead-letter records can be listed, looked up, and removed — the query side needed by queue:failed:list/queue:failed:retry/queue:failed:forget (see QueueFailedListCommand and friends).

Deliberately not part of the base interface: the default LogFailedJobStore only logs and drops, so it has nothing to query. quioteframework/queue-db’s DbFailedJobStore implements this.

interface InspectableFailedJobStoreInterface extends FailedJobStoreInterface

ImplementsFailedJobStoreInterface
Implemented byDbFailedJobStore
SourceInspectableFailedJobStoreInterface.php
MethodDescription
count(): intReturns the total number of dead-letter records held, ignoring any paging.
delete(string $id): voidRemoves the record with this id.
find(string $id): ?FailedJobRecordReturns the record with this id, or null if no such record is stored.
list(int $limit = 50, int $offset = 0): list<FailedJobRecord>

abstract public function count(): int

Returns the total number of dead-letter records held, ignoring any paging.

Returns int

abstract public function delete(string $id): void

Removes the record with this id.

Deleting an id that is not stored is not an error — implementors treat it as a no-op, so queue:failed:forget and the retry command’s delete-after-requeue step stay idempotent.

ParameterTypeDescription
$idstring

abstract public function find(string $id): ?FailedJobRecord

Returns the record with this id, or null if no such record is stored.

ParameterTypeDescription
$idstring

Returns ?FailedJobRecord

abstract public function list(int $limit = 50, int $offset = 0): list<FailedJobRecord>

ParameterTypeDescription
$limitint
$offsetint

Returns list``<FailedJobRecord>

These come from an ancestor and are documented where they are declared.

MethodDeclared inDescription
record()FailedJobStoreInterfaceTakes delivery of a job that has permanently failed.