WorkerOptions
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.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/7.x/Illuminate/Queue/WorkerOptions.html