def successJobExecution(self, jobId): self.DEBUG("In %s.successJobExecution(%s)" % (self.__class__.__name__, jobId)) with self.locked(): self.__semaphoreNbThreads.release() EDJob.cleanJobfromID(jobId, False) self.lastSuccess = jobId gc.collect()
def successJobExecution(self, jobId): self.DEBUG("In %s.successJobExecution(%s)" % (self.get_name(), jobId)) with self.locked(): self.__semaphoreNbThreads.release() EDJob.cleanJobfromID(jobId, False) self.lastSuccess = jobId self.push_change_event("jobSuccess", jobId) gc.collect()
def failureJobExecution(self, jobId): self.DEBUG("In %s.failureJobExecution(%s)" % (self.__class__.__name__, jobId)) with self.locked(): self.__semaphoreNbThreads.release() EDJob.cleanJobfromID(jobId, False) self.lastFailure = jobId sys.stdout.flush() sys.stderr.flush() gc.collect()
def failureJobExecution(self, jobId): self.DEBUG("In %s.failureJobExecution(%s)" % (self.get_name(), jobId)) with self.locked(): self.__semaphoreNbThreads.release() EDJob.cleanJobfromID(jobId, False) self.lastFailure = jobId self.push_change_event("jobFailure", jobId) sys.stdout.flush() sys.stderr.flush() gc.collect()