Skip to content

Commit

Permalink
Documented the --rest option for queue workers
Browse files Browse the repository at this point in the history
  • Loading branch information
35grain authored May 8, 2023
1 parent bbd235c commit 64606fe
Showing 1 changed file with 9 additions and 0 deletions.
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

0 comments on commit 64606fe

Please sign in to comment.