Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 662 Bytes

RemoteSlurmJob.wait_for_job_status.md

File metadata and controls

26 lines (16 loc) · 662 Bytes

RemoteSlurmJob.wait_for_job_status (function)

def wait_for_job_status(self, status='complete', error_if=['failed', 'canceled'], sleeptime=5)

Wait for the job to reach a desired job_status.

Arguments

  • status (string or list, optional, default='complete'): status or statuses to exit the wait loop successfully.
  • error_if (string or list, optional, default=['failed', 'canceled']): status or statuses to exit the wait loop and raise an error.
  • sleeptime (int, optional, default=5): number of seconds to wait between successive job status checks.

Returns

  • (string): status