Skip to content

FailedJobRecord

A stored dead-letter row, as returned by InspectableFailedJobStoreInterface.

$jobClass is plain string, not class-string<Job>, for the same reason as JobPayload::$jobClass: it comes from stored data that hasn’t been validated yet — a caller re-pushing it (queue:failed:retry) narrows it at that point instead.

final readonly class FailedJobRecord

SourceFailedJobRecord.php
PropertyTypeDescription
$attemptsintreadonly.
$exceptionClassstringreadonly.
$exceptionMessagestringreadonly.
$exceptionTracestringreadonly.
$failedAtDateTimeImmutablereadonly.
$idstringreadonly.
$jobClassstringreadonly.
$paramsarrayreadonly.

public function __construct(string $id, string $jobClass, array<string, mixed> $params, string $exceptionClass, string $exceptionMessage, string $exceptionTrace, int $attempts, DateTimeImmutable $failedAt): mixed

ParameterTypeDescription
$idstring
$jobClassstring
$paramsarray``<``string``, ``mixed``>
$exceptionClassstring
$exceptionMessagestring
$exceptionTracestring
$attemptsint
$failedAtDateTimeImmutable

Returns mixed