Closed jusiskin closed 9 months ago
The EC2InstanceWorker class can sometimes error on a retry/timeout when waiting for the EC2 instance status to become ok.
EC2InstanceWorker
botocore.exceptions.WaiterError: Waiter InstanceStatusOk failed: Max attempts exceeded
Increase the thresholds from their defaults:
sleep_amount
max_attempts
This effectively goes increases the total time for the EC2 instance to become ready from 10 minutes → 15 minutes.
There is a lower probability of the tests failing due to the EC2 instance not being ready in within the threshold allowed by the boto3 waiter.
Ran the worker agent tests using these code changes
No
What was the problem/requirement? (What/Why)
The
EC2InstanceWorker
class can sometimes error on a retry/timeout when waiting for the EC2 instance status to become ok.What was the solution? (How)
Increase the thresholds from their defaults:
sleep_amount
max_attempts
This effectively goes increases the total time for the EC2 instance to become ready from 10 minutes → 15 minutes.
What is the impact of this change?
There is a lower probability of the tests failing due to the EC2 instance not being ready in within the threshold allowed by the boto3 waiter.
How was this change tested?
Ran the worker agent tests using these code changes
Was this change documented?
No
Is this a breaking change?
No