ListenerOptions

class ListenerOptions extends WorkerOptions (View source)

Properties

int $delay The number of seconds before a released job will be available. from WorkerOptions
int $memory The maximum amount of RAM the worker may consume. from WorkerOptions
int $timeout The maximum number of seconds a child worker may run. from WorkerOptions
int $sleep The number of seconds to wait in between polling the queue. from WorkerOptions
int $maxTries The maximum amount of times a job may be attempted. from WorkerOptions
bool $force Indicates if the worker should run in maintenance mode. from WorkerOptions
bool $stopWhenEmpty Indicates if the worker should stop when queue is empty. from WorkerOptions
string $environment The environment the worker should run in.

Methods

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

Create a new listener options instance.

Details

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

Create a new listener options instance.

Parameters

string $environment
int $delay
int $memory
int $timeout
int $sleep
int $maxTries
bool $force

Return Value

void

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.7/Illuminate/Queue/ListenerOptions.html