class InspectedJob (View source)

Methods

__construct(string|null $uuid, string|null $name, int $attempts, Carbon|null $createdAt)

Create a new inspected job instance.

static InspectedJob
fromPayload(string $payload, int|null $attempts = null)

Create a new instance from a raw job payload.

Details

__construct(string|null $uuid, string|null $name, int $attempts, Carbon|null $createdAt)

Create a new inspected job instance.

Parameters

string|null $uuid

The unique identifier for the job.

string|null $name

The display name of the job.

int $attempts

The number of times the job has been attempted.

Carbon|null $createdAt

The date and time the job was created.

static InspectedJob fromPayload(string $payload, int|null $attempts = null)

Create a new instance from a raw job payload.

Parameters

string $payload

The raw JSON job payload.

int|null $attempts

The number of times the job has been attempted.

Return Value

InspectedJob