Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(1)  |  Derive(2)  |  Import(2)
A single circuit with breaker logic.

src/p/y/python-circuit-0.1.5/circuit/_twisted.py   python-circuit(Download)
# limitations under the License.
 
from circuit.breaker import CircuitBreaker, CircuitBreakerSet
try:
    from twisted.internet import defer
except ImportError:
    pass
 
 
class TwistedCircuitBreaker(CircuitBreaker):

src/p/y/python-circuit-HEAD/circuit/_twisted.py   python-circuit(Download)
# limitations under the License.
 
from circuit.breaker import CircuitBreaker, CircuitBreakerSet
try:
    from twisted.internet import defer
except ImportError:
    pass
 
 
class TwistedCircuitBreaker(CircuitBreaker):

src/p/y/python-circuit-HEAD/circuit/test/test_breaker.py   python-circuit(Download)
        self.reset_timeout = 10
        self.time_unit = 60
        self.breaker = breaker.CircuitBreaker(self.clock.time, self.log,
           [IOError], self.maxfail, self.reset_timeout, self.time_unit)