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

Comparing COMP/CRAB/python/SubmitterServer.py (file contents):
Revision 1.45 by spiga, Thu Jun 12 18:40:12 2008 UTC vs.
Revision 1.46 by farinafa, Mon Jun 16 09:40:42 2008 UTC

# Line 166 | Line 166 | class SubmitterServer( Submitter ):
166  
167              # first time submit
168              try:
169 <                task = common._db.getTask()
170 <
171 <                # set the paths refered to SE remotedir
172 <                # NOTE WMS/JDL supports only gsiftp protocol for base ISB/OSB
173 <                surlpreamble = '' #'gsiftp://%s:%s'%(self.storage_name, str(self.storage_port) )
174 <                remoteSBlist = [surlpreamble + os.path.join(self.remotedir, os.path.basename(f)) \
175 <                        for f in common._db.queryTask('globalSandbox').split(',') ]
176 <                task['globalSandbox'] = ','.join(remoteSBlist)
177 <                task['outputDirectory'] = self.remotedir
178 <                task['scriptName'] = surlpreamble + os.path.join( self.remotedir, \
179 <                        os.path.basename(common._db.queryTask('scriptName')) )
180 <                task['cfgName'] = surlpreamble + os.path.join( self.remotedir, \
181 <                        os.path.basename(common._db.queryTask('cfgName')) )
182 <
183 <                for j in task.jobs:
184 <                    j['executable'] = os.path.basename(j['executable'])
185 <                    # buggy, only the local file needed #surlpreamble + os.path.join( self.remotedir, os.path.basename(j['executable']) )
186 <                #
187 <
188 <                taskXML += common._db.serializeTask(task)
169 >                taskXML += common._db.serializeTask( common._db.getTask() )
170                  common.logger.debug(5, taskXML)
171              except Exception, e:
172                  msg = "BossLite ERROR: Unable to serialize task object\n"

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines