From 4b1151d9b69be86c52f10607ee5561709046aacb Mon Sep 17 00:00:00 2001 From: Guillaume De Saint Martin Date: Tue, 13 Aug 2024 19:15:06 +0200 Subject: [PATCH 1/3] [Requirements] bump --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 4e9d5fbb2..0d3430828 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ # Drakkar-Software requirements OctoBot-Commons==1.9.51 -OctoBot-Trading==2.4.95 +OctoBot-Trading==2.4.96 OctoBot-Evaluators==1.9.5 OctoBot-Tentacles-Manager==2.9.15 OctoBot-Services==1.6.16 From ac1834b47b155b7c0afa0f01e920338161388ae7 Mon Sep 17 00:00:00 2001 From: Guillaume De Saint Martin Date: Wed, 14 Aug 2024 19:05:03 +0200 Subject: [PATCH 2/3] [Community] retry on 503 error --- .../community/supabase_backend/community_supabase_client.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/octobot/community/supabase_backend/community_supabase_client.py b/octobot/community/supabase_backend/community_supabase_client.py index 8ab80913a..7180d99a8 100644 --- a/octobot/community/supabase_backend/community_supabase_client.py +++ b/octobot/community/supabase_backend/community_supabase_client.py @@ -60,9 +60,9 @@ async def httpx_retrier_wrapper(*args, **kwargs): error = None try: resp: httpx.Response = await f(*args, **kwargs) - if resp.status_code == 502: - # waking up, retry - error = "bad gateway" + if resp.status_code in (502, 503): + # waking up or SLA issue, retry + error = f"{resp.status_code} error {resp.reason_phrase}" else: if i > 0: commons_logging.get_logger(__name__).debug( From 37b7741d41faf2b3322e76999cc485d8b5ab9d67 Mon Sep 17 00:00:00 2001 From: Guillaume De Saint Martin Date: Wed, 14 Aug 2024 19:35:05 +0200 Subject: [PATCH 3/3] [Requirements] bump --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 0d3430828..9637d8fc0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ # Drakkar-Software requirements OctoBot-Commons==1.9.51 -OctoBot-Trading==2.4.96 +OctoBot-Trading==2.4.97 OctoBot-Evaluators==1.9.5 OctoBot-Tentacles-Manager==2.9.15 OctoBot-Services==1.6.16