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.
Synopsis
Section titled “Synopsis”interface InspectableFailedJobStoreInterface extends FailedJobStoreInterface
| Implements | FailedJobStoreInterface |
| Implemented by | DbFailedJobStore |
| Source | InspectableFailedJobStoreInterface.php |
Methods
Section titled “Methods”| Method | Description |
|---|---|
count(): int | Returns the total number of dead-letter records held, ignoring any paging. |
delete(string $id): void | Removes the record with this id. |
find(string $id): ?FailedJobRecord | Returns the record with this id, or null if no such record is stored. |
list(int $limit = 50, int $offset = 0): list<FailedJobRecord> |
count()
Section titled “count()”abstract public function count(): int
Returns the total number of dead-letter records held, ignoring any paging.
Returns int
delete()
Section titled “delete()”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.
| Parameter | Type | Description |
|---|---|---|
$id | string |
find()
Section titled “find()”abstract public function find(string $id): ?FailedJobRecord
Returns the record with this id, or null if no such record is stored.
| Parameter | Type | Description |
|---|---|---|
$id | string |
Returns ?FailedJobRecord
list()
Section titled “list()”abstract public function list(int $limit = 50, int $offset = 0): list<FailedJobRecord>
| Parameter | Type | Description |
|---|---|---|
$limit | int | |
$offset | int |
Returns list``<FailedJobRecord>
Inherited methods
Section titled “Inherited methods”These come from an ancestor and are documented where they are declared.
| Method | Declared in | Description |
|---|---|---|
record() | FailedJobStoreInterface | Takes delivery of a job that has permanently failed. |