From fcc27980ef3eb61e8a900ce2eec381dc00052f0c Mon Sep 17 00:00:00 2001 From: Chaitanya Prakash Bapat Date: Tue, 22 Oct 2019 13:13:49 -0700 Subject: [PATCH] fix instance state (#12) --- .../jenkins-autoscaling/lambda_mxnet_ci/autoscaling/handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/jenkins-autoscaling/lambda_mxnet_ci/autoscaling/handler.py b/services/jenkins-autoscaling/lambda_mxnet_ci/autoscaling/handler.py index 3f78434..d48ed14 100755 --- a/services/jenkins-autoscaling/lambda_mxnet_ci/autoscaling/handler.py +++ b/services/jenkins-autoscaling/lambda_mxnet_ci/autoscaling/handler.py @@ -417,7 +417,7 @@ def _unconnected_instances(nodes: list, instance_uptime: Dict[str, int], ec2_res dict_starting_nodes: Dict[str, List[str]] = defaultdict(list) instances_filter = ec2_resource.instances.filter( Filters=[ - {'Name': 'instance-state-name', 'Values': ['starting', 'running']}, + {'Name': 'instance-state-name', 'Values': ['pending', 'running']}, {'Name': 'tag:AutoScaledSlave', 'Values': ['True']} # Ensure only listing instances managed by auto scaling ]) for instance in instances_filter: