Update queues.md
This commit is contained in:
parent
5f32644428
commit
e77595e14d
|
@ -485,7 +485,7 @@ The `retry_after` configuration option and the `--timeout` CLI option are differ
|
|||
|
||||
#### Worker Sleep Duration
|
||||
|
||||
When jobs are available on the queue, the worker will keep processing jobs with no delay in between them. However, the `sleep` option determines how long in seconds the worker will "sleep" if there are no new jobs available. While sleeping, the worker will not process any new jobs - the jobs will be processed after the worker wakes up again.
|
||||
When jobs are available on the queue, the worker will keep processing jobs with no delay in between them. However, the `sleep` option determines how long (in seconds) the worker will "sleep" if there are no new jobs available. While sleeping, the worker will not process any new jobs - the jobs will be processed after the worker wakes up again.
|
||||
|
||||
php artisan queue:work --sleep=3
|
||||
|
||||
|
|
Loading…
Reference in New Issue