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.14 by spiga, Mon Jun 25 14:21:56 2007 UTC vs.
Revision 1.15 by spiga, Sat Jul 14 08:38:21 2007 UTC

# Line 249 | Line 249 | class SchedulerGlite(SchedulerEdg):
249          return cmd_out
250  
251      def findSites_(self, n):
252 +        itr4 = []
253          sites = common.jobDB.destination(n)
254          if len(sites)>0 and sites[0]=="":
255 <            return []
256 <        return sites
255 >            return itr4
256 >        if sites != [""]:
257 >            ##Addedd Daniele
258 >            replicas = self.checkBlackList(sites,n)
259 >            if len(replicas)!=0:
260 >                replicas = self.checkWhiteList(replicas,n)
261 >              
262 >            if len(replicas)==0:
263 >                msg = 'No sites remaining that host any part of the requested data! Exiting... '
264 >                raise CrabException(msg)
265 >            itr4 = replicas
266 >            #####        
267 >        return itr4
268  
269      def submitTout(self, list):
270          return 120

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines