See 'Circuit Breaker' in Distributed Systems. Prevents cascading failures.
Hystrix.
class CircuitBreaker:\n def __init__(self):\n pass\n\n def execute(self):\n print('Executing Circuit Breaker')