Skip to main content

@terascope/utils / promises / PRetryConfig

Interface: PRetryConfig

Defined in: packages/utils/src/promises.ts:69

Properties

PropertyTypeDescriptionDefined in
backoffnumberThe backoff multiplier Default 2packages/utils/src/promises.ts:97
delaynumberThe initial time to delay before retrying the function Default 500packages/utils/src/promises.ts:83
endWithFatalbooleanIf set to true, this will set fail with fatalError to truepackages/utils/src/promises.ts:102
logError(...args: any[]) => voidLog function for logging any errors that occurredpackages/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 retryablepackages/utils/src/promises.ts:119
maxDelaynumberThe maximum time to delay when retrying in milliseconds Default 60000packages/utils/src/promises.ts:90
reason?stringSet a error message prefixpackages/utils/src/promises.ts:107
retriesnumberThe number of retries to attempt before failing. This does not include the initial attempt Default 3packages/utils/src/promises.ts:76