Method: LabClient::ClientHelpers#should_retry?
- Defined in:
- lib/labclient/client/helpers.rb
#should_retry? ⇒ Boolean
Handle Retry Logic
-
If response merits a retry
-
Retry is enabled
-
Retry Sleep Max isn’t hit
112 113 114 |
# File 'lib/labclient/client/helpers.rb', line 112 def should_retry? resp.retry? && settings[:retry] && !retry_max? end |