From 120698663e0b3f1348388ce518251bb217bc4757 Mon Sep 17 00:00:00 2001 From: Smail Kourta Date: Sun, 19 Apr 2026 16:23:14 +0000 Subject: [PATCH] update timout for failvoer to 190s --- src/common/client.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/common/client.py b/src/common/client.py index 4303eb5..fd5c80a 100644 --- a/src/common/client.py +++ b/src/common/client.py @@ -372,9 +372,11 @@ def failover_primary_coordinated(self, hostname: str) -> bool: == "OK" ) + # wait for 3m+10 for the failover to finish + # sentinel waits 3m before timing out a failover @retry( - stop=stop_after_attempt(5), - wait=wait_fixed(2), + stop=stop_after_attempt(19), + wait=wait_fixed(10), retry=retry_if_result(lambda in_progress: in_progress), retry_error_callback=lambda _: True, )