adobe / adobe/aio-lib-state

Allow retry options in lib state

Open
#216 2 comments 0 reactions 0 assignees View on GitHub
enhancement
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.