Options
All
  • Public
  • Public/Protected
  • All
Menu

The configuration with which the retriable version of a function is created.

Hierarchy

  • RetryConfig

Index

Properties

maxTrialCount: number

Must be a positive integer indicating the maximum number of times the original function can be invoked.

returnErrors: boolean

Whether to return errors in the response. If set to false, the returned errors will be an empty array.

sleepTimeBetweenTrials: number | ((lastTrialIndex: number) => number)

Must be a non-negative integer or a function that takes the 0-based index of the last trial and returns a non-negative integer indicating the amount of time (in ms) to "sleep" before the next invocation. This is useful if you want to implement something like exponential backoff.

Generated using TypeDoc