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
def cancel(self): if self.jobid is None: raise JobNotStartedError('cannot cancel an unstarted job') return self.scheduler.cancel(self)
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()
def finished(self): if self._jobid is None: raise JobNotStartedError('cannot poll an unstarted job')
def cancel(self): if self._jobid is None: raise JobNotStartedError('cannot cancel an unstarted job')
def wait(self): if self._jobid is None: raise JobNotStartedError('cannot wait an unstarted job')