README.md in survey-gizmo-ruby-6.2.13 vs README.md in survey-gizmo-ruby-6.3.0
- old
+ new
@@ -36,14 +36,16 @@
config.results_per_page = 100
# Optional - Defaults to 300 seconds
config.timeout_seconds = 600
- # Optional - Defaults to 3 retries with a 60 second delay interval
- config.retry_attempts = 3
- config.retry_interval = 60
+ # Optional - Configure arguments to the Retriable gem directly that will be merged into the defaults
+ config.retriable_params = { tries: 30, max_elapsed_time: 3600 }
end
```
+
+Check the [Retriable](https://github.com/kamui/retriable) documentation for how to configure the `retriable_params` hash.
+The default is to retry 3 times, with 60 seconds before the first retry and a slow exponential backoff after that.
`api_token` and `api_token_secret` can be read from environment variables, in which case you would set them like this:
```bash
$ export SURVEYGIZMO_API_TOKEN=till_tippin_woodgraingrip