From 618588c4dd50a028bb2976d7bfe8262eee429c1b Mon Sep 17 00:00:00 2001 From: bozhidarz Date: Mon, 6 Apr 2020 11:18:27 +0300 Subject: [PATCH] adding 1 sec sleep --- akinaka/update/asg/update_asg.py | 1 + 1 file changed, 1 insertion(+) diff --git a/akinaka/update/asg/update_asg.py b/akinaka/update/asg/update_asg.py index 7f248a2..b731a96 100644 --- a/akinaka/update/asg/update_asg.py +++ b/akinaka/update/asg/update_asg.py @@ -130,6 +130,7 @@ class ASG(): max_attempts = 300 while len(self.asgs_healthy_instances(inactive_asg)) < scale_to['desired'] and attempts != max_attempts: logging.info("Waiting for all instances to be healthy ...") + sleep(1) attempts += 1 if attempts == max_attempts: logging.info("Max timeout reached without success... Exiting!") -- GitLab