MCPcopy Create free account

hub / github.com/danielfm/pybreaker / types & classes

Types & classes29 in github.com/danielfm/pybreaker

↓ 38 callersClassCircuitBreaker
More abstractly, circuit breakers exists to allow one subsystem to fail without destroying the entire system. This is done by wrapping danger
src/pybreaker/__init__.py:81
↓ 7 callersClassCircuitMemoryStorage
Implement a `CircuitBreakerStorage` in local memory.
src/pybreaker/__init__.py:416
↓ 7 callersClassCircuitRedisStorage
Implement a `CircuitBreakerStorage` using redis.
src/pybreaker/__init__.py:474
↓ 5 callersClassCircuitBreakerListener
Listener class used to plug code to a ``CircuitBreaker`` instance when certain events happen.
src/pybreaker/__init__.py:647
↓ 4 callersClassTestException
tests/pybreaker_test.py:577
↓ 3 callersClassCircuitBreakerError
When calls to a service fails because the circuit is open, this error is raised to allow the caller to handle this type of exception differently.
src/pybreaker/__init__.py:900
↓ 2 callersClassListener
tests/pybreaker_test.py:272
↓ 2 callersClassSleepListener
tests/pybreaker_test.py:1163
↓ 2 callersClassStateListener
tests/pybreaker_test.py:1130
↓ 2 callersClassSuccessListener
tests/pybreaker_test.py:1099
↓ 1 callersClassFoo
tests/pybreaker_test.py:365
ClassCircuitBreakerConfigurationTestCase
Tests for the CircuitBreaker class.
tests/pybreaker_test.py:384
ClassCircuitBreakerContextManagerTestCase
Tests for the CircuitBreaker class, when used as a context manager.
tests/pybreaker_test.py:1318
ClassCircuitBreakerRedisConcurrencyTestCase
Tests to reproduce common concurrency between different machines connecting to redis. This is simulated locally using threads.
tests/pybreaker_test.py:1172
ClassCircuitBreakerRedisTestCase
Tests for the CircuitBreaker class.
tests/pybreaker_test.py:957
ClassCircuitBreakerState
Implement the behavior needed by all circuit breaker states.
src/pybreaker/__init__.py:668
ClassCircuitBreakerStorage
Define the underlying storage for a circuit breaker - the underlying implementation should be in a subclass that overrides the method this cla
src/pybreaker/__init__.py:360
ClassCircuitBreakerStorageBasedTestCase
Mix in to test against different storage backings. Depends on `self.breaker` and `self.breaker_kwargs`.
tests/pybreaker_test.py:12
ClassCircuitBreakerTestCase
Tests for the CircuitBreaker class.
tests/pybreaker_test.py:901
ClassCircuitBreakerThreadsTestCase
Tests to reproduce common synchronization errors on CircuitBreaker class.
tests/pybreaker_test.py:1041
ClassCircuitClosedState
In the normal "closed" state, the circuit breaker executes operations as usual. If the call succeeds, nothing happens. If it fails, however, the
src/pybreaker/__init__.py:780
ClassCircuitHalfOpenState
In the "half-open" state, the next call to the circuit breaker is allowed to execute the dangerous operation. Should the call succeed, the circuit
src/pybreaker/__init__.py:861
ClassCircuitOpenState
When the circuit is "open", calls to the circuit breaker fail immediately, without any attempt to execute the real operation. This is indicated by
src/pybreaker/__init__.py:818
ClassSleepListener
tests/pybreaker_test.py:1308
ClassSpecificException
tests/pybreaker_test.py:1063
ClassSpecificException
tests/pybreaker_test.py:1205
ClassStateListener
tests/pybreaker_test.py:1271
ClassSuccessListener
tests/pybreaker_test.py:1240
ClassTestError
tests/pybreaker_test.py:1324