ec2_asg: Retry Autoscaling Group delete calls when scaling activity is in progress (#46124)

* Retry delete calls when scaling activity is in progress

* changelog
pull/49468/head
Ryan Brown 6 years ago committed by Sloane Hertel
parent bbab4c1b49
commit 7f7c059a04

@ -0,0 +1,2 @@
bugfixes:
- Retry deleting the autoscaling group if there are scaling activities in progress.

@ -585,7 +585,7 @@ def update_asg(connection, **params):
connection.update_auto_scaling_group(**params)
@AWSRetry.backoff(**backoff_params)
@AWSRetry.backoff(catch_extra_error_codes=['ScalingActivityInProgress'], **backoff_params)
def delete_asg(connection, asg_name, force_delete):
connection.delete_auto_scaling_group(AutoScalingGroupName=asg_name, ForceDelete=force_delete)

Loading…
Cancel
Save