ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CRAB/python/SchedulerCaf.py
Revision: 1.9
Committed: Tue Jul 15 14:40:10 2008 UTC (16 years, 9 months ago) by fanzago
Content type: text/x-python
Branch: MAIN
CVS Tags: CRAB_DLS_PHED1, CRAB_DLS_PHED, CRAB_2_3_2_Fnal, CRAB_2_3_2, CRAB_2_3_2_pre7, CRAB_2_3_2_pre5, CRAB_2_3_2_pre4, CRAB_2_3_2_pre3, CRAB_2_3_2_pre2, CRAB_2_3_2_pre1
Branch point for: AnaDataSet
Changes since 1.8: +9 -2 lines
Log Message:
some changes about publication at caf

File Contents

# User Rev Content
1 slacapra 1.1 from Scheduler import Scheduler
2     from SchedulerLsf import SchedulerLsf
3     from crab_exceptions import *
4     from crab_logger import Logger
5     import common
6    
7     import os,string
8    
9     #
10     # Naming convention:
11     # methods starting with 'ws' are responsible to provide
12     # corresponding part of the job script ('ws' stands for 'write script').
13     #
14    
15     class SchedulerCaf(SchedulerLsf) :
16    
17     def __init__(self):
18     SchedulerLsf.__init__(self)
19     Scheduler.__init__(self,"CAF")
20    
21     return
22    
23     def configure(self, cfg_params):
24     """
25     CAF is just a special queue and resources for LSF at CERN
26     """
27     SchedulerLsf.configure(self, cfg_params)
28 spiga 1.6 self.queue = cfg_params.get(self.name().upper()+'.queue','cmscaf')
29 spiga 1.5 self.res = cfg_params.get(self.name().upper()+'.resource','cmscaf')
30 fanzago 1.9 self.pool = cfg_params.get('USER.storage_pool','cmscafuser')
31    
32 slacapra 1.1 def wsSetupEnvironment(self):
33     """
34     Returns part of a job script which does scheduler-specific work.
35     """
36     txt = SchedulerLsf.wsSetupEnvironment(self)
37     txt += '# CAF specific stuff\n'
38 fanzago 1.9 #txt += 'export STAGE_SVCCLASS=cmscaf \n'
39     txt += '\n'
40     return txt
41 slacapra 1.1
42 fanzago 1.9 def wsCopyOutput(self):
43     ### default is the name of the storage pool
44     ### where users can copy job outputs
45     txt=self.wsCopyOutput_tmp(self.pool)
46 slacapra 1.1 return txt