A call a circuit breaker refused without making it: the circuit is open, or it is half-open and another call is already probing the service.
It is the breaker's own answer, not the provider's: no request was sent, and nothing was learned about the service. It is a RecoverableError, since the same call can succeed once the circuit closes, with retryAfter as its retryDelay. It is not retried automatically: org.llm4s.reliability.RetryPolicy.isRetryable is false for it, because sending the call again at once is what an open circuit exists to prevent. A caller that wants to wait reads retryAfter; one with another provider falls back to it.
Value parameters
- message
-
what happened, naming the provider and the time left
- probing
-
truewhen the circuit is half-open and the call was refused because a probe is in flight - provider
-
the name the breaker was given for the service it guards
- retryAfter
-
how long until the circuit lets a call through to probe the service; zero when a probe is already in flight, since its result may close the circuit at any moment
Attributes
- Companion
- object
- Source
- CircuitOpenError.scala
- Graph
-
- Supertypes
-
trait RecoverableErrortrait LLMErrortrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
