PHP Class Illuminate\Queue\WorkerOptions

Exibir arquivo Open project: illuminate/queue

Public Properties

Property Type Description
$delay integer The number of seconds before a released job will be available.
$force boolean Indicates if the worker should run in maintenance mode.
$maxTries integer The maximum amount of times a job may be attempted.
$memory integer The maximum amount of RAM the worker may consume.
$sleep integer The number of seconds to wait in between polling the queue.
$timeout integer The maximum number of seconds a child worker may run.

Public Methods

Method Description
__construct ( integer $delay, integer $memory = 128, integer $timeout = 60, integer $sleep = 3, integer $maxTries, boolean $force = false ) Create a new worker options instance.

Method Details

__construct() public method

Create a new worker options instance.
public __construct ( integer $delay, integer $memory = 128, integer $timeout = 60, integer $sleep = 3, integer $maxTries, boolean $force = false )
$delay integer
$memory integer
$timeout integer
$sleep integer
$maxTries integer
$force boolean

Property Details

$delay public_oe property

The number of seconds before a released job will be available.
public int $delay
return integer

$force public_oe property

Indicates if the worker should run in maintenance mode.
public bool $force
return boolean

$maxTries public_oe property

The maximum amount of times a job may be attempted.
public int $maxTries
return integer

$memory public_oe property

The maximum amount of RAM the worker may consume.
public int $memory
return integer

$sleep public_oe property

The number of seconds to wait in between polling the queue.
public int $sleep
return integer

$timeout public_oe property

The maximum number of seconds a child worker may run.
public int $timeout
return integer