Interface DirectProcessorOptions

Hierarchy

  • DirectProcessorOptions

Properties

caption: string
isTransientError: ((error: any, retry: number) => boolean)

Type declaration

    • (error: any, retry: number): boolean
    • isTransientError is a function to find out whether an error is considered transient or not.

      Parameters

      • error: any
      • retry: number

      Returns boolean

maxDelay: number

maxDelay is the maximum delay used between task retries

maxRetries: number

maxRetries is the max number of retries of a failing task when it fails with transient errors.

minDelay: number

minDelay is the minimum delay used between task retries

nextDelay: ((delay: number, retry: number) => number)

Type declaration

    • (delay: number, retry: number): number
    • nextDelay is a function to compute the next delay given the previous one and the retry number.

      Parameters

      • delay: number
      • retry: number

      Returns number

Generated using TypeDoc