WorkflowConfig: {
    backoffCoefficient?: number;
    maximumAttempts?: number;
    maximumInterval?: string;
    throwOnError?: boolean;
}

Type definition for workflow configuration.

Type declaration

  • OptionalbackoffCoefficient?: number

    Backoff coefficient for retry mechanism.

    10 (HMSH_MESHFLOW_EXP_BACKOFF)
    
  • OptionalmaximumAttempts?: number

    Maximum number of attempts for retries.

    5 (HMSH_MESHFLOW_MAX_ATTEMPTS)
    
  • OptionalmaximumInterval?: string

    Maximum interval between retries.

    120s (HMSH_MESHFLOW_MAX_INTERVAL)
    
  • OptionalthrowOnError?: boolean

    Whether to throw an error on final failure after retries are exhausted or return the error object as a standard response containing error-related fields like stack, code, message.

    true