Skip to content

deboorn/expbackoffworker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ca9b917 · Nov 30, 2022

History

29 Commits
Aug 1, 2021
Nov 6, 2018
Nov 6, 2018
Nov 6, 2018
Nov 6, 2018
Nov 6, 2018
Nov 6, 2018
Aug 1, 2021
Aug 1, 2021
Nov 6, 2018
Nov 6, 2018
Nov 6, 2018
Oct 3, 2015
Nov 6, 2018
Nov 6, 2018
Nov 23, 2022
Nov 6, 2018

Repository files navigation

ExpBackoffWorker

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

Adds automatic exponential backoff with default delay of 30 seconds and max delay of 2 hours to Laravel 5.3+ queue worker.

Install

Laravel 5.3+

  1. Install the deboorn/expbackoffworker package via Composer

    $ composer require deboorn/expbackoffworker
  2. Update config/app.php to activate ExpBackoffWorker

    # Add `QueueServiceProvider` to the `providers` array
    'providers' => [
        ...
        ExpBackoffWorker\QueueServiceProvider::class,
    ]
  3. 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,
        ],

Change log

Please see CHANGELOG for more information on what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details.

Security

If you discover any security related issues, please email daniel.boorn [at] gmail.com instead of using the issue tracker.

Credits

License

The Apache 2.0 License (Apache-2.0). Please see License File for more information.