Skip to content

Commit

Permalink
fix: increase ec2 instance_status_ok waiter timeout thresholds (aws-d…
Browse files Browse the repository at this point in the history
…eadline#47)

Signed-off-by: Josh Usiskin <[email protected]>
  • Loading branch information
jusiskin authored Dec 23, 2023
1 parent 6c0bbc8 commit ca4fb49
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/deadline_test_fixtures/deadline/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ca4fb49

Please sign in to comment.