shouldRetry()
shouldRetry(\Exception $exception, integer $retryCount) : boolean
Returns true if the action can be retried, false otherwise.
Parameters
\Exception | $exception | The exception that caused the action to fail |
integer | $retryCount | The number of times the action has been already called |
Returns
boolean —Whether or not it is OK to retry the action