def setup(self, job_path, job_data=None): try: if self.aggregate: self.ts = tspl.TSPLSum(job_path, self.k1, self.k2, job_data=job_data) else: self.ts = tspl.TSPLBase(job_path, self.k1, self.k2, job_data=job_data) except tspl.TSPLException as e: print(sys.exc_info()[0]) return False except EOFError as e: print('End of file found reading: ' + job_path) return False return tspl_utils.checkjob(self.ts, self.min_time, self.min_hosts, self.waynesses, skip_queues=self.ignore_qs, ignore_status=self.ignore_status)
def setup(self,job_path,job_data=None): try: if self.aggregate: self.ts=tspl.TSPLSum(job_path,self.k1,self.k2,job_data=job_data) else: self.ts=tspl.TSPLBase(job_path,self.k1,self.k2,job_data=job_data) except tspl.TSPLException as e: return False except EOFError as e: print('End of file found reading: ' + job_path) return False return tspl_utils.checkjob(self.ts, self.min_time, self.min_hosts, self.waynesses, skip_queues=self.ignore_qs, ignore_status=self.ignore_status)