Job Components: `Index P Retry Config`
index.PRetryConfig
Table of contents
Properties
Properties
backoff
• backoff: number
The backoff multiplier
Default
2
Defined in
packages/utils/dist/src/promises.d.ts:30
delay
• delay: number
The initial time to delay before retrying the function
Default
500
Defined in
packages/utils/dist/src/promises.d.ts:18
endWithFatal
• endWithFatal: boolean
If set to true, this will set fail with fatalError to true
Defined in
packages/utils/dist/src/promises.d.ts:34
logError
• logError: (...args
: any
[]) => void
Type declaration
▸ (...args
): void
Log function for logging any errors that occurred
Parameters
Name | Type |
---|---|
...args | any [] |
Returns
void
Defined in
packages/utils/dist/src/promises.d.ts:42
matches
• Optional
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
Defined in
packages/utils/dist/src/promises.d.ts:48
maxDelay
• maxDelay: number
The maximum time to delay when retrying in milliseconds
Default
60000
Defined in
packages/utils/dist/src/promises.d.ts:24
reason
• Optional
reason: string
Set a error message prefix
Defined in
packages/utils/dist/src/promises.d.ts:38
retries
• retries: number
The number of retries to attempt before failing. This does not include the initial attempt
Default
3
Defined in
packages/utils/dist/src/promises.d.ts:12