Method: Procore::Configuration#max_retries
- Defined in:
- lib/procore/configuration.rb
#max_retries ⇒ Integer
Note:
Defaults to 1
Number of times to retry a failed API call. Reasons an API call could potentially fail:
-
Service is briefly down or unreachable
-
Timeout hit - service is experiencing immense load or mid restart
-
Because computers
Would recommend 3-5 for production use. Has exponential backoff - first request waits a 1.5s after a failure, next one 2.25s, next one 3.375s, 5.0, etc.
68 69 70 |
# File 'lib/procore/configuration.rb', line 68 def max_retries @max_retries end |