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

Comparing COMP/CRAB/python/SchedulerGlite.py (file contents):
Revision 1.75 by spiga, Sun Jan 17 19:01:08 2010 UTC vs.
Revision 1.78 by spigafi, Wed Feb 3 14:59:30 2010 UTC

# Line 50 | Line 50 | class SchedulerGlite(SchedulerGrid):
50          if ( self.cfg_params.get('GRID.use_cream',None) ):
51              RB='CREAM'
52          if not RB: return None
53        glite_config = None
53          rb_param_file = None
54          configFileName = 'glite_wms_'+str(RB)+'.conf'
55  
56 <        results = Downloader(url, os.getcwd())
56 >        results = Downloader(url)
57          gliteConfig  = results.filePath(configFileName)
58  
59 <        if (glite_config ):
60 <            rb_param_file = glite_config
59 >        if (gliteConfig ):
60 >            rb_param_file = gliteConfig
61          return rb_param_file
62  
63      def ce_list(self):
# Line 236 | Line 235 | class SchedulerGlite(SchedulerGrid):
235  
236          txt += '}\n'
237          return txt
238 +
239 +    def listMatch(self, dest, full):
240 +        matching='fast'
241 +        
242 +        if self.boss().schedulerConfig['name'] == 'SchedulerGLite' :
243 +            taskId=common._db.getTask()
244 +            req=str(self.sched_parameter(1,taskId))
245 +            sites = self.boss().schedSession().matchResources(taskId, requirements=req)
246 +        else :
247 +            sites = SchedulerGrid.listMatch(self, dest, full)
248 +            
249 +        if full == True: matching='full'
250 +        common.logger.debug("list of available site ( "+str(matching) +" matching ) : "+str(sites))
251 +        
252 +        return sites

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines