Skip to main content

@terascope/job-components / index / PRetryConfig

Interface: PRetryConfig

Defined in: packages/utils/dist/src/promises.d.ts:5

Properties

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