class JobQueueingCanceled

Dispatched when coroutine cancellation stops a job's queueing, or interrupts the notification of its outcome.

Methods

__construct(string $connectionName, string|null $queue, object|string $job, string $payload, int|null $delay, Throwable $cancellation, bool $sendAttempted, bool $queued = false, Throwable|null $exception = null)

Create a new event instance.

array
payload()

Get the decoded job payload.

Details

at line 27
__construct(string $connectionName, string|null $queue, object|string $job, string $payload, int|null $delay, Throwable $cancellation, bool $sendAttempted, bool $queued = false, Throwable|null $exception = null)

Create a new event instance.

Parameters

string $connectionName
string|null $queue
object|string $job
string $payload
int|null $delay

the number of seconds the job was delayed

Throwable $cancellation

the cancellation, or a failure carrying it

bool $sendAttempted

whether the job was handed to storage or the broker

bool $queued

whether the job was stored, when cancellation interrupted its queued notification

Throwable|null $exception

the queueing failure, when cancellation interrupted its failure notification

at line 45
array payload()

Get the decoded job payload.

Return Value

array

Exceptions

JsonException