

def wait(self, timeout=900, check_interval_secs=5):
    'Waits for a deployment to finish\n\n        If a deployment completes successfully, True is returned, if it fails\n        for any reason a DeploymentFailed exception is raised. If the\n        deployment does not complete within ``timeout`` seconds, a\n        DeploymentFailed exception is raised.\n\n        ``check_interval_secs`` is used to determine the delay between\n        subsequent checks. The default of 5 seconds is adequate for normal\n        use.\n        '
    _started = datetime.datetime.utcnow()
    while True:
        time.sleep(check_interval_secs)
        if self.check():
            return True
        delta = (datetime.datetime.utcnow() - _started)
        if (delta.total_seconds() > timeout):
            raise DeploymentFailed(('Timed out: %d seconds' % check_interval_secs))

dataset/ETHPy150Open shopkeep/shpkpr/shpkpr/marathon/deployment.py MarathonDeployment.wait/VarMisuse@88/272 `timeout`->`check_interval_secs`