MCPcopy Create free account
hub / github.com/Emmimal/control-layer / __init__

Method __init__

control_layer.py:536–542  ·  view source on GitHub ↗
(self, failure_threshold: int = 5, recovery_seconds: float = 30.0)

Source from the content-addressed store, hash-verified

534 """
535
536 def __init__(self, failure_threshold: int = 5, recovery_seconds: float = 30.0):
537 self.failure_threshold = failure_threshold
538 self.recovery_seconds = recovery_seconds
539 self._failures = 0
540 self._last_failure_time: Optional[float] = None
541 self._state = CircuitState.CLOSED
542 self._lock = threading.Lock()
543
544 @property
545 def state(self) -> CircuitState:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected