Source code for buildtest.scheduler.job
import time
[docs]
class Job:
"""This is a base class for holding job level data and common methods for used
for batch job submission."""
def __init__(self, jobID):
self.jobid = jobID
self._state = None
self._outfile = None
self._errfile = None
self._exitcode = None
self._jobdata = None
# used to store the job elapsed time
self.elapsedtime = 0
# used for job pending time
self.pendtime = 0
# time when job was submitted
self.submittime = time.time()
# time when job was started
self.starttime = None
[docs]
def get_output_and_error_files(self):
"""Get output and error of job"""
raise NotImplementedError