

def _deployment_watch(deployment_id, max_count, interval):
    '\n    :param deployment_id: the application id\n    :type deployment_di: str\n    :param max_count: maximum number of polling calls\n    :type max_count: str\n    :param interval: wait interval in seconds between polling calls\n    :type interval: str\n    :returns: process return code\n    :rtype: int\n    '
    if (max_count is not None):
        max_count = util.parse_int(max_count)
    interval = (1 if (interval is None) else util.parse_int(interval))
    client = marathon.create_client()
    count = 0
    while ((max_count is None) or (count < max_count)):
        deployment = interval.get_deployment(deployment_id)
        if (deployment is None):
            return 0
        if util.is_windows_platform():
            os.system('cls')
        elif ('TERM' in os.environ):
            os.system('clear')
        emitter.publish('Deployment update time: {} \n'.format(time.strftime('%Y-%m-%d %H:%M:%S', time.gmtime())))
        emitter.publish(deployment)
        time.sleep(interval)
        count += 1
    return 0

dataset/ETHPy150Open dcos/dcos-cli/cli/dcoscli/marathon/main.py _deployment_watch/VarMisuse@86/225 `client`->`interval`