LogFailedJobStore
Default FailedJobStoreInterface: logs the failure and drops it.
Enough for sync/dev usage; an app wanting inspectable dead-letter storage binds quioteframework/queue-db’s DbFailedJobStore instead (see PluginRegistrar::service()’s set-if-absent rule).
Synopsis
Section titled “Synopsis”final readonly class LogFailedJobStore implements FailedJobStoreInterface
| Implements | FailedJobStoreInterface |
| Source | LogFailedJobStore.php |
Constructor
Section titled “Constructor”__construct()
Section titled “__construct()”public function __construct(LoggerInterface $logger = new NullLogger(…)): mixed
| Parameter | Type | Description |
|---|---|---|
$logger | LoggerInterface |
Returns mixed
Methods
Section titled “Methods”| Method | Description |
|---|---|
record(FailedJob $failedJob): void | Logs the failure at error level and keeps nothing. |
record()
Section titled “record()”public function record(FailedJob $failedJob): void
Logs the failure at error level and keeps nothing.
The message names the job class, attempt count and exception; the job’s params and the exception trace travel in the log context. Nothing is stored, so the failure cannot be listed or retried afterwards.
| Parameter | Type | Description |
|---|---|---|
$failedJob | FailedJob |