PHPackages                             frutality/laravel-bounceable-job - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Queues &amp; Workers](/categories/queues)
4. /
5. frutality/laravel-bounceable-job

ActiveLibrary[Queues &amp; Workers](/categories/queues)

frutality/laravel-bounceable-job
================================

Package for creating bounceable queue jobs in Laravel

v1.0.0(7y ago)03MITPHPPHP &gt;=7.1

Since May 9Pushed 7y ago1 watchersCompare

[ Source](https://github.com/frutality/laravel-bounceable-job)[ Packagist](https://packagist.org/packages/frutality/laravel-bounceable-job)[ RSS](/packages/frutality-laravel-bounceable-job/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (2)Used By (0)

Laravel Bounceable Job
======================

[](#laravel-bounceable-job)

Package for creating bounceable queue jobs in Laravel.

Installation
------------

[](#installation)

`composer require frutality/laravel-bounceable-job`

Why
---

[](#why)

Often our `Jobs` are trying to reach remote APIs which are down. Fail happens. Usually we want to retry these jobs several times in case API became up.

By default, Laravel provides ability to immediately retry failed job several times (see [docs](https://laravel.com/docs/5.6/queues#max-job-attempts-and-timeout)).

But in most cases, immediate retry will also fail because APIs need some time to get up. We may want to increase delay after each failed job try.

Example
-------

[](#example)

```
