added circuitbreaker example;

This commit is contained in:
Marco Zeisler 2021-04-12 21:34:11 +02:00
parent d035e19296
commit 191b772882
3 changed files with 14 additions and 2 deletions

View File

@ -0,0 +1,2 @@
circuitbreaker # fault tolerance

View File

@ -1 +1,6 @@
# TODO from circuitbreaker import circuit
@circuit(failure_threshold=10, expected_exception=ConnectionError)
def external_call():
...

View File

@ -1 +1,6 @@
# TODO from circuitbreaker import circuit
@circuit(failure_threshold=10, expected_exception=ConnectionError)
def external_call():
...