Skip to content

Commit 6fecc8e

Browse files
committed
fix(retry): initial changes for retry configuration
1 parent e6dd145 commit 6fecc8e

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

Utilities/examples/multiple_engines_example.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@
6161
# config.proxy = "<proxyUrl>"
6262
config.verify_ssl = False
6363

64+
config.retries = Retry(total=3, status=3, status_forcelist=frozenset([429, 503]), backoff_factor=2, raise_on_status=False)
65+
6466
api_client = ApiClient(config)
6567

6668
components_api = ComponentsApi(api_client)

Utilities/examples/pa_engine_example.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@
4141
# config.proxy = "<proxyUrl>"
4242
config.verify_ssl = False
4343

44+
config.retries = Retry(total=3, status=3, status_forcelist=frozenset([429, 503]), backoff_factor=2, raise_on_status=False)
45+
4446
api_client = ApiClient(config)
4547

4648
components_api = ComponentsApi(api_client)

Utilities/examples/spar_engine_example.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@
4343
# config.proxy = "<proxyUrl>"
4444
config.verify_ssl = False
4545

46+
config.retries = Retry(total=3, status=3, status_forcelist=frozenset([429, 503]), backoff_factor=2, raise_on_status=False)
47+
4648
api_client = ApiClient(config)
4749

4850
components_api = ComponentsApi(api_client)

Utilities/examples/vault_engine_example.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@
4141
# config.proxy = "<proxyUrl>"
4242
config.verify_ssl = False
4343

44+
config.retries = Retry(total=3, status=3, status_forcelist=frozenset([429, 503]), backoff_factor=2, raise_on_status=False)
45+
4446
api_client = ApiClient(config)
4547

4648
components_api = ComponentsApi(api_client)

0 commit comments

Comments
 (0)