qp.analyze.checkup.check_submit_record

qp.analyze.checkup.check_submit_record(submit_record_path, delete_queued)[source]

Determine job status from the submit record file.

Parses timestamps in the .submit_record file to determine whether the job is queued, running, or completed. Optionally deletes records for queued (but never started) jobs to allow resubmission.

Parameters:
  • submit_record_path (str) – Path to the .submit_record file.

  • delete_queued (bool) – If True, delete records for jobs that were queued but never started.

Returns:

(status, author) where status is one of 'queue', 'running', 'done', or 'backlog'.

Return type:

tuple of (str, str)