Skip to content

Commit 7f6be2f

Browse files
committed
Decrease backoff increase retries
1 parent 064432d commit 7f6be2f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/oaim_sandbox.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ def main() -> None:
6060
api_down = False
6161
if "user_settings" not in state:
6262
try:
63-
state.user_settings = api_call.post(url=api_endpoint, params={"client": client_gen_id()}, backoff_factor=4)
63+
state.user_settings = api_call.post(
64+
url=api_endpoint, params={"client": client_gen_id()}, retries=8, backoff_factor=2
65+
)
6466
except api_call.ApiError:
6567
logger.error("Unable to contact API Server; setting as Down!")
6668
api_down = True
@@ -129,6 +131,7 @@ def main() -> None:
129131
pg = st.navigation(navigation, position="sidebar", expanded=False)
130132
pg.run()
131133

134+
132135
if __name__ == "__main__":
133136
set_server_state()
134137
# Start Server if not running

src/sandbox/tests/config/test_client_databases.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def test_connected(app_test, db_container):
9999
COMMON_VARS["database_user"],
100100
COMMON_VARS["database_password"],
101101
"WRONG_TP",
102-
r"Unable to perform update: DPY-4000: .*",
102+
r"Unable to perform update: DPY.*",
103103
),
104104
]
105105

0 commit comments

Comments
 (0)