Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
arjkesh committed Mar 16, 2024
1 parent 1d5c089 commit fa0fe28
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/test_utils/ec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,8 +530,8 @@ def launch_efa_with_heterogenous_reservations(ec2_client, ec2_run_instances_defi
for reserved_az in reserved_azs:
if reserved_az not in az_priorities:
az_priorities.append(reserved_az)
raise RuntimeError(az_priorities)

raise RuntimeError(f"AZ priorities {az_priorities}")

for az in az_priorities:
LOGGER.info(f"Checking AZ {az}")
Expand Down Expand Up @@ -605,11 +605,11 @@ def launch_efa_with_heterogenous_reservations(ec2_client, ec2_run_instances_defi
return []


@retry(
reraise=True,
stop=stop_after_delay(30 * 60), # Keep retrying for 30 minutes
wait=wait_random_exponential(min=60, max=5 * 60), # Retry after waiting 1-10 minutes
)
# @retry(
# reraise=True,
# stop=stop_after_delay(30 * 60), # Keep retrying for 30 minutes
# wait=wait_random_exponential(min=60, max=5 * 60), # Retry after waiting 1-10 minutes
# )
def launch_efa_instances_with_retry(
ec2_client,
ec2_instance_type,
Expand Down

0 comments on commit fa0fe28

Please sign in to comment.