Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/common/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Comment thread
skourta marked this conversation as resolved.
retry=retry_if_result(lambda in_progress: in_progress),
retry_error_callback=lambda _: True,
Comment thread
skourta marked this conversation as resolved.
)
Expand Down