Skip to content

Commit

Permalink
fmt changes
Browse files Browse the repository at this point in the history
  • Loading branch information
NicholasBlaskey committed Mar 6, 2024
1 parent 560357b commit 497ff74
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .circleci/scripts/wait_for_perf_migration_upload_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,18 @@ def _wait_for_master() -> None:
print("Checking for master")
cert = certs.Cert(noverify=True)
sess = api.UnauthSession("http://127.0.0.1:8080", cert)
for _ in range(2 * 60 * 60):

# 2 hours is the most a migration can take, with this setup.
# If a migration takes longer than that we have hit an issue a customer will likely hit too.
for i in range(2 * 60 * 60):
try:
r = sess.get("info")
if r.status_code == requests.codes.ok:
return
except api.errors.MasterNotFoundException:
pass
print("Waiting for master to be available...")
if i % 60 == 0:
print("Waiting for master to be available...")
time.sleep(1)
raise ConnectionError("Timed out connecting to Master")

Expand Down

0 comments on commit 497ff74

Please sign in to comment.