@terascope/utils / promises / PRetryConfig
Interface: PRetryConfig
Defined in: packages/utils/src/promises.ts:69
Properties
Property | Type | Description | Defined in |
---|---|---|---|
backoff | number | The backoff multiplier Default 2 | packages/utils/src/promises.ts:97 |
delay | number | The initial time to delay before retrying the function Default 500 | packages/utils/src/promises.ts:83 |
endWithFatal | boolean | If set to true, this will set fail with fatalError to true | packages/utils/src/promises.ts:102 |
logError | (...args : any []) => void | Log function for logging any errors that occurred | packages/utils/src/promises.ts:112 |
matches? | (string | RegExp )[] | If this not specified or is empty, all errors will be treated as retryable. If any of the items in the array match the error message, it will be considered retryable | packages/utils/src/promises.ts:119 |
maxDelay | number | The maximum time to delay when retrying in milliseconds Default 60000 | packages/utils/src/promises.ts:90 |
reason? | string | Set a error message prefix | packages/utils/src/promises.ts:107 |
retries | number | The number of retries to attempt before failing. This does not include the initial attempt Default 3 | packages/utils/src/promises.ts:76 |