Example #1
0
    def done(self):
        self.status = int(progressd.get(self.id, 'status'))
        if self.status in (Job.COMPLETE, Job.ERROR):
            self.refresh()

        return self.status in (Job.COMPLETE, Job.ERROR)
Example #2
0
    def done(self):
        self.status = int(progressd.get(self.id, 'status'))
        if self.status in (Job.COMPLETE, Job.ERROR):
            self.refresh()

        return self.status in (Job.COMPLETE, Job.ERROR)
Example #3
0
 def progress(self):
     progress = progressd.get(self.id, 'progress')
     logger.debug('***PROGRESS: %s: %s' % (self.id, progress))
     return int(progress)
Example #4
0
 def progress(self):
     progress = progressd.get(self.id, 'progress')
     logger.debug('***PROGRESS: %s: %s' % (self.id, progress))
     return int(progress)