Allow retry options in lib state
- Dominant language
- JavaScript
- Stars
- 13
- Forks
- 12
- Avg merge
- 2d 20h
- Merged PRs (30d)
- 2
Description
Currently lib state is using the default retry options from `HttpExponentialBackoff`.
The third parameter here could be `retryOptions` to allow configurable retry options: https://github.com/adobe/aio-lib-state/blob/4cf1346ce87f33ef021dfc7be310769489dc7687/lib/AdobeState.js#L310
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
Contributor guide
Research direction
Start in lib/AdobeState.js at the linked line around 310 and trace how the state constructor stores its options before calling HttpExponentialBackoff. Add the requested way to configure retryOptions and verify that the saved options reach that call; done means callers can override the defaults without changing existing behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100