added circuitbreaker example;
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
circuitbreaker # fault tolerance
|
||||
|
||||
@@ -1 +1,6 @@
|
||||
# TODO
|
||||
from circuitbreaker import circuit
|
||||
|
||||
|
||||
@circuit(failure_threshold=10, expected_exception=ConnectionError)
|
||||
def external_call():
|
||||
...
|
||||
|
||||
@@ -1 +1,6 @@
|
||||
# TODO
|
||||
from circuitbreaker import circuit
|
||||
|
||||
|
||||
@circuit(failure_threshold=10, expected_exception=ConnectionError)
|
||||
def external_call():
|
||||
...
|
||||
|
||||
Reference in New Issue
Block a user