FailedJobStoreInterface
Dead-letter sink for jobs that exhausted their retries.
Independent of the queue driver in use — QueuePlugin binds a default LogFailedJobStore; quioteframework/queue-db offers a persistent DbFailedJobStore an app can bind instead, regardless of which QueueDriverInterface it queues jobs through.
Synopsis
Section titled “Synopsis”interface FailedJobStoreInterface
| Implemented by | InspectableFailedJobStoreInterface, LogFailedJobStore |
| Source | FailedJobStoreInterface.php |
Methods
Section titled “Methods”| Method | Description |
|---|---|
record(FailedJob $failedJob): void | Takes delivery of a job that has permanently failed. |
record()
Section titled “record()”abstract public function record(FailedJob $failedJob): void
Takes delivery of a job that has permanently failed.
Called by JobExecutor once retries are exhausted, before the driver is told to discard the job. Implementors decide whether the record is kept (a queryable store) or merely reported and dropped (LogFailedJobStore).
| Parameter | Type | Description |
|---|---|---|
$failedJob | FailedJob |