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.
Synopsis
Section titled “Synopsis”final readonly class FailedJobRecord
| Source | FailedJobRecord.php |
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
$attempts | int | readonly. |
$exceptionClass | string | readonly. |
$exceptionMessage | string | readonly. |
$exceptionTrace | string | readonly. |
$failedAt | DateTimeImmutable | readonly. |
$id | string | readonly. |
$jobClass | string | readonly. |
$params | array | readonly. |
Constructor
Section titled “Constructor”__construct()
Section titled “__construct()”public function __construct(string $id, string $jobClass, array<string, mixed> $params, string $exceptionClass, string $exceptionMessage, string $exceptionTrace, int $attempts, DateTimeImmutable $failedAt): mixed
| Parameter | Type | Description |
|---|---|---|
$id | string | |
$jobClass | string | |
$params | array``<``string``, ``mixed``> | |
$exceptionClass | string | |
$exceptionMessage | string | |
$exceptionTrace | string | |
$attempts | int | |
$failedAt | DateTimeImmutable |
Returns mixed