def _wait_for_completion(self):
"""
Waits for a stack operation to finish. Prints CloudFormation events
while it waits.
:returns: The final stack status.
:rtype: sceptre.stack_status.StackStatus
"""
status = StackStatus.IN_PROGRESS
self.most_recent_event_datetime = (
datetime.now(tzutc()) - timedelta(seconds=3)
)
while status == StackStatus.IN_PROGRESS:
status = self._get_simplified_status(self.get_status())
self._log_new_events()
time.sleep(4)
return status
评论列表
文章目录