Currently lib state is using the default retry options from HttpExponentialBackoff.
The third parameter here could be retryOptions to allow configurable retry options:
|
const promise = this.fetchRetry.exponentialBackoff(url, requestOptions) |
To support it:
- state needs to have another parameter in the constructor for
retryOptions, or a setRetryOptions method
- pass in the saved retryOptions to the above line linked above
Currently lib state is using the default retry options from
HttpExponentialBackoff.The third parameter here could be
retryOptionsto allow configurable retry options:aio-lib-state/lib/AdobeState.js
Line 310 in 4cf1346
To support it:
retryOptions, or asetRetryOptionsmethod