We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2a5b9f commit 18802f1Copy full SHA for 18802f1
ec2/spark_ec2.py
@@ -627,7 +627,7 @@ def get_instances(group_names):
627
reservations = conn.get_all_reservations(
628
filters={"instance.group-name": group_names})
629
instances = itertools.chain.from_iterable(r.instances for r in reservations)
630
- return [i for i in instances if i.state != "terminated"]
+ return [i for i in instances if i.state not in ["shutting-down", "terminated"]]
631
632
master_instances = get_instances([cluster_name + "-master"])
633
slave_instances = get_instances([cluster_name + "-slaves"])
0 commit comments