7 lines
133 B
Python
7 lines
133 B
Python
from circuitbreaker import circuit
|
|
|
|
|
|
@circuit(failure_threshold=10, expected_exception=ConnectionError)
|
|
def external_call():
|
|
...
|