MCPcopy Index your code
hub / github.com/aws/aws-cli / wait_for_deploy_success

Method wait_for_deploy_success

awscli/customizations/ecs/deploy.py:320–334  ·  view source on GitHub ↗
(self, id, wait_min)

Source from the content-addressed store, hash-verified

318 self._appspec_dict = appspec_obj
319
320 def wait_for_deploy_success(self, id, wait_min):
321 waiter = self._client.get_waiter("deployment_successful")
322
323 if wait_min is not None and wait_min > MAX_WAIT_MIN:
324 wait_min = MAX_WAIT_MIN
325
326 elif wait_min is None or wait_min < 30:
327 wait_min = 30
328
329 delay_sec = DEFAULT_DELAY_SEC
330 max_attempts = (wait_min * 60) / delay_sec
331 config = {'Delay': delay_sec, 'MaxAttempts': max_attempts}
332
333 self._show_deploy_wait_msg(id, wait_min)
334 waiter.wait(deploymentId=id, WaiterConfig=config)
335
336 def _show_deploy_wait_msg(self, id, wait_min):
337 sys.stdout.write(

Calls 3

_show_deploy_wait_msgMethod · 0.95
get_waiterMethod · 0.45
waitMethod · 0.45