Skip to content

Allow retry options in lib state #216

@duynguyen

Description

@duynguyen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions