Buckets:

download
raw
882 Bytes
"""
Circuit breaker pattern implementation shared across OSSS.
This module provides the common CircuitState enum used by both the API
decorators and orchestration error policies to implement circuit breaker
patterns for fault tolerance.
"""
from enum import Enum
class CircuitState(Enum):
"""
Circuit breaker states used across the system.
This enum is shared between:
- API layer decorators (src/osss/api/decorators.py)
- Orchestration error policies (src/osss/orchestration/error_policies.py)
States:
- CLOSED: Normal operation, requests are allowed through
- OPEN: Circuit is open due to failures, requests fail fast
- HALF_OPEN: Testing if the service has recovered
"""
CLOSED = "closed" # Normal operation
OPEN = "open" # Circuit is open, blocking requests
HALF_OPEN = "half_open" # Testing if service has recovered

Xet Storage Details

Size:
882 Bytes
·
Xet hash:
5fdc846826170b47eb9ad1f606507cd0d93a31e6b3ec9e5806b35d5ba29bcd36

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.