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" |