WorkerOptions
in package
Table of Contents
- $delay : int
- The number of seconds before a released job will be available.
- $force : bool
- Indicates if the worker should run in maintenance mode.
- $maxTries : int
- The maximum amount of times a job may be attempted.
- $memory : int
- The maximum amount of RAM the worker may consume.
- $sleep : int
- The number of seconds to wait in between polling the queue.
- $timeout : int
- The maximum number of seconds a child worker may run.
- __construct() : void
- Create a new worker options instance.
Properties
$delay
The number of seconds before a released job will be available.
public
int
$delay
$force
Indicates if the worker should run in maintenance mode.
public
bool
$force
$maxTries
The maximum amount of times a job may be attempted.
public
int
$maxTries
$memory
The maximum amount of RAM the worker may consume.
public
int
$memory
$sleep
The number of seconds to wait in between polling the queue.
public
int
$sleep
$timeout
The maximum number of seconds a child worker may run.
public
int
$timeout
Methods
__construct()
Create a new worker options instance.
public
__construct(int $delay[, int $memory = 128 ][, int $timeout = 60 ][, int $sleep = 3 ], int $maxTries[, bool $force = false ]) : void
Parameters
- $delay : int
- $memory : int = 128
- $timeout : int = 60
- $sleep : int = 3
- $maxTries : int
- $force : bool = false