예제 #1
0
파일: exams.py 프로젝트: dimm0/tacc_stats
    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)
예제 #2
0
 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)