Package Data | |
---|---|
Maintainer Username: | daniel.boorn |
Maintainer Contact: | daniel.boorn@gmail.com (Daniel Boorn) |
Package Create Date: | 2015-10-03 |
Package Last Update: | 2022-11-30 |
Language: | PHP |
License: | Apache-2 |
Last Refreshed: | 2024-12-26 15:21:23 |
Package Statistics | |
---|---|
Total Downloads: | 25,834 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 7 |
Total Watchers: | 4 |
Total Forks: | 3 |
Total Open Issues: | 1 |
Adds automatic exponential backoff with default delay of 30 seconds and max delay of 2 hours to Laravel 5.3+ queue worker.
Install the deboorn/expbackoffworker
package via Composer
$ composer require deboorn/expbackoffworker
Update config/app.php
to activate ExpBackoffWorker
# Add `QueueServiceProvider` to the `providers` array
'providers' => [
...
ExpBackoffWorker\QueueServiceProvider::class,
]
Update config/queue.php
to increase {queue-driver}.retry_after to max delay + 100, such as redis.retry_after
# Update `retry_after` for the queue connection you plan to use
'redis' => [
...
'retry_after' => 7300,
],
Please see CHANGELOG for more information on what has changed recently.
$ composer test
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
If you discover any security related issues, please email daniel.boorn [at] gmail.com instead of using the issue tracker.
The Apache 2.0 License (Apache-2.0). Please see License File for more information.