def wait_for_job_stopping(service, cluster, job, host, instance_id):
  while not check_job_stopped(service, cluster, job, host, instance_id):
    Log.print_warning("Wait for instance %d of %s on %s stopping" % (
      get_real_instance_id(instance_id), job, host))
    time.sleep(2)
Wait for a specified job to be stopped.
dataset/ETHPy150Open XiaoMi/minos/client/deploy_utils.py/wait_for_job_stopping