Method: Procore::Configuration#max_retries

Defined in:
lib/procore/configuration.rb

#max_retriesInteger

Note:

Defaults to 1

Number of times to retry a failed API call. Reasons an API call could potentially fail:

  1. Service is briefly down or unreachable

  2. Timeout hit - service is experiencing immense load or mid restart

  3. 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.

Returns:



68
69
70
# File 'lib/procore/configuration.rb', line 68

def max_retries
  @max_retries
end