def WaitJob(opts, args):
  job_id = args[0]

  retcode = 0
  try:
    cli.PollJob(job_id, feedback_fn=lambda _: None)
  except errors.GenericError, err:
    (retcode, job_result) = cli.FormatError(err)
    ToStderr("Job %s failed: %s", job_id, job_result)

  return retcode
Wait for a job to finish, not producing any output.
dataset/ETHPy150Open ganeti/ganeti/lib/client/gnt_job.py/WaitJob