class WorkerStopping (View source)

Methods

__construct(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(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

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.

Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.