class JobAttempted

Methods

__construct(string $connectionName, Job $job, Throwable|null $exception = null, float|null $duration = null, bool $canceled = false)

Create a new event instance.

bool
successful()

Determine if the job completed with failing or an unhandled exception occurring.

Details

at line 19
__construct(string $connectionName, Job $job, Throwable|null $exception = null, float|null $duration = null, bool $canceled = false)

Create a new event instance.

Parameters

string $connectionName
Job $job
Throwable|null $exception

the exception, if one occurred while processing the job

float|null $duration

the number of milliseconds the job took to process

bool $canceled

whether cancellation stopped the attempt, or its timeout monitor took it over, before its normal completion

at line 31
bool successful()

Determine if the job completed with failing or an unhandled exception occurring.

Return Value

bool