job_monitor module
- job_monitor(job, interval=1, quiet=False)
- Installs a job monitor, that waits until the current job reaches one of the following status:
JobStatus.CANCELLED JobStatus.DONE JobStatus.ERROR
Once the job reaches one of the above statuses, this method exits.
- Args:
- job (Jobv1):
The job on which to wait.
- interval (Optional[int]):
The amount of time in seconds for which the monitor will wait and check the status.
- quiet (Optional[bool]):
True – If set to True, then prints the current job status on the console. False – If set to False, then keeps quiet
- Returns:
None
- Raises:
- RunTimeError:
If the job is invalid.