From ca4fb49cc201ca675ae593797ef83e776715ee5a Mon Sep 17 00:00:00 2001 From: Josh Usiskin <56369778+jusiskin@users.noreply.github.com> Date: Fri, 22 Dec 2023 20:15:57 -0600 Subject: [PATCH] fix: increase ec2 instance_status_ok waiter timeout thresholds (#47) Signed-off-by: Josh Usiskin <56369778+jusiskin@users.noreply.github.com> --- src/deadline_test_fixtures/deadline/worker.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/deadline_test_fixtures/deadline/worker.py b/src/deadline_test_fixtures/deadline/worker.py index 84d8cace..9f55acec 100644 --- a/src/deadline_test_fixtures/deadline/worker.py +++ b/src/deadline_test_fixtures/deadline/worker.py @@ -342,7 +342,10 @@ def _launch_instance(self, *, s3_files: list[tuple[str, str]] | None = None) -> LOG.info(f"Waiting for EC2 instance {self.instance_id} status to be OK") instance_running_waiter = self.ec2_client.get_waiter("instance_status_ok") - instance_running_waiter.wait(InstanceIds=[self.instance_id]) + instance_running_waiter.wait( + InstanceIds=[self.instance_id], + WaiterConfig={"Delay": 15, "MaxAttempts": 60}, + ) LOG.info(f"EC2 instance {self.instance_id} status is OK") def _start_worker_agent(self) -> None: # pragma: no cover