Skip to content

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).

final readonly class LogFailedJobStore implements FailedJobStoreInterface

ImplementsFailedJobStoreInterface
SourceLogFailedJobStore.php

public function __construct(LoggerInterface $logger = new NullLogger(…)): mixed

ParameterTypeDescription
$loggerLoggerInterface

Returns mixed

MethodDescription
record(FailedJob $failedJob): voidLogs the failure at error level and keeps nothing.

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.

ParameterTypeDescription
$failedJobFailedJob