added circuitbreaker example;
This commit is contained in:
parent
d035e19296
commit
191b772882
2
components/i_feed/requirements.txt
Normal file
2
components/i_feed/requirements.txt
Normal file
@ -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():
|
||||
...
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user