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

Comparing COMP/CRAB/python/SchedulerCondor.py (file contents):
Revision 1.23 by ewv, Mon Mar 9 15:56:26 2009 UTC vs.
Revision 1.27 by ewv, Tue Aug 18 15:00:37 2009 UTC

# Line 54 | Line 54 | class SchedulerCondor(SchedulerLocal) :
54          self.return_data = cfg_params.get('USER.return_data', 0)
55          self.copy_data   = cfg_params.get("USER.copy_data", 0)
56  
57 <        if int(self.copy_data) == 1:
57 >        self.proxyValid = 0
58 >        self.dontCheckProxy = int(cfg_params.get("GRID.dont_check_proxy", 0))
59 >        self.proxyServer = cfg_params.get("GRID.proxy_server", 'myproxy.cern.ch')
60 >        common.logger.debug('Setting myproxy server to ' + self.proxyServer)
61 >
62 >        self.group = cfg_params.get("GRID.group", None)
63 >        self.role  = cfg_params.get("GRID.role", None)
64 >        self.VO    = cfg_params.get('GRID.virtual_organization', 'cms')
65  
66 <            self.proxyValid = 0
60 <            self.dontCheckProxy = int(cfg_params.get("EDG.dont_check_proxy", 0))
61 <            self.proxyServer = cfg_params.get("EDG.proxy_server", 'myproxy.cern.ch')
62 <            common.logger.debug(5,'Setting myproxy server to ' + self.proxyServer)
63 <
64 <            self.group = cfg_params.get("EDG.group", None)
65 <            self.role  = cfg_params.get("EDG.role", None)
66 <            self.VO    = cfg_params.get('EDG.virtual_organization', 'cms')
67 <
68 <            self.checkProxy()
69 <
70 <        self.role  = None
66 >        self.checkProxy()
67  
68          return
69  
# Line 80 | Line 76 | class SchedulerCondor(SchedulerLocal) :
76          """
77          Return scheduler-specific parameters
78          """
79 +        req = ''
80 +        if self.EDG_addJdlParam:
81 +            if self.EDG_addJdlParam[-1] == '':
82 +                self.EDG_addJdlParam = self.EDG_addJdlParam[:-1]
83 +            for p in self.EDG_addJdlParam:
84 +                req += p.strip()+';\n'
85  
86 <        index = int(common._db.nJobs()) - 1
85 <        schedParam = ''
86 <
87 <        for i in range(index):
88 <            pass
89 <
90 <        return schedParam
86 >        return req
87  
88  
89      def realSchedParams(self, cfg_params):
# Line 179 | Line 175 | fi
175   """
176  
177          return txt
178 +
179 +
180 +    def sched_fix_parameter(self):
181 +        """
182 +        Returns string with requirements and scheduler-specific parameters
183 +        """
184 +
185 +        if self.EDG_requirements:
186 +            req = self.EDG_requirements
187 +            taskReq = {'commonRequirements':req}
188 +            common._db.updateTask_(taskReq)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines