class WorkerStopping

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, float|int|null $lastJobProcessedAt = null, float|int|null $memoryUsage = null, bool $terminatesImmediately = false)

Create a new event instance.

Details

at line 18
__construct(string|null $connectionName = null, string|null $queue = null, int $status = 0, WorkerOptions|null $workerOptions = null, WorkerStopReason|null $reason = null, int|null $jobsProcessed = null, float|int|null $lastJobProcessedAt = null, float|int|null $memoryUsage = null, bool $terminatesImmediately = false)

Create a new event instance.

Parameters

string|null $connectionName
string|null $queue
int $status
WorkerOptions|null $workerOptions
WorkerStopReason|null $reason
int|null $jobsProcessed
float|int|null $lastJobProcessedAt
float|int|null $memoryUsage

the memory usage of the worker in megabytes

bool $terminatesImmediately

whether the process terminates as soon as listeners return; when true, listeners must not start cleanup that must finish after they return