class WorkerOptions (View source)

Properties

int $delay

The number of seconds before a released job will be available.

int $memory

The maximum amount of RAM the worker may consume.

int $timeout

The maximum number of seconds a child worker may run.

int $sleep

The number of seconds to wait in between polling the queue.

int $maxTries

The maximum amount of times a job may be attempted.

bool $force

Indicates if the worker should run in maintenance mode.

bool $stopWhenEmpty

Indicates if the worker should stop when queue is empty.

Methods

void
__construct(int $delay = 0, int $memory = 128, int $timeout = 60, int $sleep = 3, int $maxTries = 1, bool $force = false, bool $stopWhenEmpty = false)

Create a new worker options instance.

Details

void __construct(int $delay = 0, int $memory = 128, int $timeout = 60, int $sleep = 3, int $maxTries = 1, bool $force = false, bool $stopWhenEmpty = false)

Create a new worker options instance.

Parameters

int $delay
int $memory
int $timeout
int $sleep
int $maxTries
bool $force
bool $stopWhenEmpty

Return Value

void