Download the PHP package zarganwar/failure-retry-executor without Composer
On this page you can find all versions of the php package zarganwar/failure-retry-executor. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download zarganwar/failure-retry-executor
More information about zarganwar/failure-retry-executor
Files in zarganwar/failure-retry-executor
Download zarganwar/failure-retry-executor
More information about zarganwar/failure-retry-executor
Files in zarganwar/failure-retry-executor
Vendor zarganwar
Package failure-retry-executor
Short Description Retry failed operations
License
Homepage https://github.com/Zarganwar/failure-retry-executor
Package failure-retry-executor
Short Description Retry failed operations
License
Homepage https://github.com/Zarganwar/failure-retry-executor
Please rate this library. Is it a good library?
Informations about the package failure-retry-executor
failure-retry-executor
Usage
Simply run function Zarganwar\FailureRetryExecutor\FailureRetryExecutor::execute()
with your command as first argument
Your function will be executed and if it fails (throws an Exception or returns false), it will be executed again.
Max. default retries is 3. Of course, you can change it by passing maxAttempts: int
argument.
You can also respond to the command result or failure by passing onSuccess: callable
or/and onFailure: callable
arguments.
Example of usage:
All versions of failure-retry-executor with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.1
The package zarganwar/failure-retry-executor contains the following files
Loading the files please wait ....