Skip to content

CircuitBreakerManualControl

Defined in: src/circuit-breaker.ts:166

Manually isolate (hold open) or close one or more circuit breakers, e.g. from an admin endpoint or a health check.

new CircuitBreakerManualControl(isIsolated?): CircuitBreakerManualControl

Defined in: src/circuit-breaker.ts:170

boolean = false

CircuitBreakerManualControl

get isIsolated(): boolean

Defined in: src/circuit-breaker.ts:174

boolean

close(): Promise<void>

Defined in: src/circuit-breaker.ts:192

Closes the circuits now, dropping every outstanding isolation.

Promise<void>


isolate(): Promise<() => Promise<void>>

Defined in: src/circuit-breaker.ts:182

Holds the circuits isolated until every isolation is released (stacking) or close() is called. Resolves to the release function of this isolation; releasing twice, or after close(), does nothing.

Promise<() => Promise<void>>