コード例 #1
0
ファイル: test_JobRunner.py プロジェクト: hem-cfc/genomics
 def setUp(self):
     # Skip the test if Grid Engine not available
     if bcf_utils.find_program('qstat') is None:
         raise unittest.SkipTest("'qstat' not found, Grid Engine not available")
     # Create a temporary directory to work in
     self.working_dir = self.make_tmp_dir()
     self.log_dir = None
     # Extra arguments: edit this for local setup requirements
     self.ge_extra_args = ['-l','short']
コード例 #2
0
 def check_dirs(self):
     # Check for data_manger
     if bcf_utils.find_program('data_manager.py') is None:
         raise Exception,"data_manager.py not found"
     # Only run checks
     for data_dir in self._data_dirs:
         # Make a containing group
         group = self._sched.group(data_dir.name,
                                   callbacks=(self.archiving_complete,))
         self.schedule_verify(data_dir)
         group.close()
     # Wait for all jobs to complete
     self._sched.wait()
     # Return overall status
     return self.status
コード例 #3
0
 def archive_dirs(self):
     # Check for data_manger
     if bcf_utils.find_program('data_manager.py') is None:
         raise Exception,"data_manager.py not found"
     # Set up archive jobs
     for data_dir in self._data_dirs:
         # Make a containing group
         group = self._sched.group(data_dir.name,
                                   callbacks=(self.archiving_complete,))
         # Schedule operations
         self.schedule_copy(data_dir)
         if self._new_group is not None:
             self.schedule_group_reset(data_dir)
         self.schedule_verify(data_dir)
         group.close()
     # Wait for all jobs to complete
     self._sched.wait()
     # Return overall status
     return self.status
コード例 #4
0
ファイル: test_JobRunner.py プロジェクト: gwmei/genomics
 def setUp(self):
     # Skip the test if Grid Engine not available
     if bcf_utils.find_program('qstat') is None:
         raise unittest.SkipTest("'qstat' not found, Grid Engine not available")
     # Create a temporary directory to work in
     self.working_dir = tempfile.mkdtemp(dir=os.getcwd())