예제 #1
0
파일: __init__.py 프로젝트: pramodk/reframe
    def finished(self):
        if self.jobid is None:
            raise JobNotStartedError('cannot poll an unstarted job')

        done = self.scheduler.finished(self)
        if done:
            self._completion_time = self._completion_time or time.time()

        return done
예제 #2
0
파일: __init__.py 프로젝트: pramodk/reframe
    def cancel(self):
        if self.jobid is None:
            raise JobNotStartedError('cannot cancel an unstarted job')

        return self.scheduler.cancel(self)
예제 #3
0
파일: __init__.py 프로젝트: pramodk/reframe
    def wait(self):
        if self.jobid is None:
            raise JobNotStartedError('cannot wait an unstarted job')

        self.scheduler.wait(self)
        self._completion_time = self._completion_time or time.time()
예제 #4
0
 def finished(self):
     if self._jobid is None:
         raise JobNotStartedError('cannot poll an unstarted job')
예제 #5
0
 def cancel(self):
     if self._jobid is None:
         raise JobNotStartedError('cannot cancel an unstarted job')
예제 #6
0
 def wait(self):
     if self._jobid is None:
         raise JobNotStartedError('cannot wait an unstarted job')