ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CRAB/python/SchedulerCaf.py
(Generate patch)

Comparing COMP/CRAB/python/SchedulerCaf.py (file contents):
Revision 1.16 by spiga, Thu Jan 14 10:22:40 2010 UTC vs.
Revision 1.17 by spiga, Tue May 4 17:24:59 2010 UTC

# Line 27 | Line 27 | class SchedulerCaf(SchedulerLsf) :
27          SchedulerLsf.configure(self, cfg_params)
28          self.queue = cfg_params.get(self.name().upper()+'.queue','cmscaf1nw')
29          self.res = cfg_params.get(self.name().upper()+'.resource','"type==SLC5_64 || type==SLC4_64"')
30 +        self.group = cfg_params.get(self.name().upper()+'.group', None)
31          self.pool = cfg_params.get('USER.storage_pool','cmscafuser')
32  
33 +    def sched_parameter(self,i,task):
34 +        """
35 +        Returns parameter scheduler-specific, to use with BOSS .
36 +        """
37 +        sched_param= ''
38 +
39 +        if (self.queue):
40 +            sched_param += '-q '+self.queue +' '
41 +        if (self.res): sched_param += ' -R '+self.res +' '
42 +        if (self.group): sched_param += ' -G '+str(self.group).upper() +' '
43 +        return sched_param
44 +
45 +
46   #    def wsSetupEnvironment(self):
47   #        """
48   #        Returns part of a job script which does scheduler-specific work.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines