Skip to main content

@terascope/core-utils / promises / PRetryConfig

Interface: PRetryConfig

Defined in: packages/core-utils/src/promises.ts:67

Properties

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