Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documented the --rest option for queue workers #8781

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions queues.md
Original file line number Diff line number Diff line change
Expand Up @@ -1552,6 +1552,15 @@ When jobs are available on the queue, the worker will keep processing jobs with
php artisan queue:work --sleep=3
```

<a name="worker-rest-duration"></a>
#### Worker Rest Duration

In order to override the default behaviour and wait a number of seconds in between jobs, the `rest` option may be used. This is useful in cases where, for example, sending out emails is rate limited by the web hosting service used:

```shell
php artisan queue:work --rest=5
```

<a name="resource-considerations"></a>
#### Resource Considerations

Expand Down