deboorn/expbackoffworker

Adds automatic exponential backoff to Laravel 5's queue worker
25,969 7
Install
composer require deboorn/expbackoffworker
Latest Version:v3.1
PHP:>=7.0
Laravel:8 · 9
Older releases:5 · 6
License:Apache-2
Last Updated:Feb 4, 2026
Links: GitHub  ·  Packagist
Maintainer: daniel.boorn

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.

Related Packages

beholdr/laravel-backoff-limiter

Rate limiter with exponential backoff for Laravel.

6,492 2
milenmk/laravel-rate-limiting

Advanced rate limiting package for Laravel with exponential backoff, custom mess...

2,151 10
doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

648,266,899 9,701
laravel/framework

The Laravel Framework.

604,216,237 34,982
laravel/tinker

Powerful REPL for the Laravel framework.

512,508,631 7,443

Version History

Version Released PHP Laravel License
v3.1 >=7.0 ^8.0|^9.0 Apache-2
v3.0 >=7.0 ^8.0 Apache-2
v2.2 >=5.6.4 5.3.*|5.4.*|5.5.*|5.6.*|5.7.*|5.8.*|6.* Apache-2
v2.1 >=5.6.4 5.3.*|5.4.*|5.5.*|5.6.*|5.7.*|5.8.* Apache-2
v2.0 >=5.6.4 5.3.*|5.4.*|5.5.*|5.6.*|5.7.* MIT