class WorkerStopping (View source)

Methods

__construct(string|null $connectionName = null, string|null $queue = null, int $status = 0, WorkerOptions|null $workerOptions = null, WorkerStopReason|null $reason = null, int|null $jobsProcessed = null, int|float|null $lastJobProcessedAt = null, int|float|null $memoryUsage = null)

Create a new event instance.

Details

__construct(string|null $connectionName = null, string|null $queue = null, int $status = 0, WorkerOptions|null $workerOptions = null, WorkerStopReason|null $reason = null, int|null $jobsProcessed = null, int|float|null $lastJobProcessedAt = null, int|float|null $memoryUsage = null)

Create a new event instance.

Parameters

string|null $connectionName

The connection name.

string|null $queue

The queue name.

int $status

The worker exit status.

WorkerOptions|null $workerOptions

The worker options.

WorkerStopReason|null $reason

The reason why the worker is stopping.

int|null $jobsProcessed

The number of jobs processed by the worker.

int|float|null $lastJobProcessedAt

The timestamp of the last job processed by the worker.

int|float|null $memoryUsage

The memory usage of the worker in MB.