@vgerbot/async
    Preparing search index...

    Interface CircuitBreakerOptions

    Configuration options for CircuitBreakerExecutor.

    interface CircuitBreakerOptions {
        failureThreshold: number;
        halfOpenRequests?: number;
        resetTimeout: number;
    }
    Index

    Properties

    failureThreshold: number

    Number of consecutive failures before opening the circuit

    halfOpenRequests?: number

    Number of successful requests needed in HALF_OPEN to close circuit. Default: 1

    resetTimeout: number

    Time in milliseconds to wait before attempting recovery (OPEN -> HALF_OPEN)