File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed
src/DIRAC/Resources/Computing/BatchSystems Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ def submitJob(self, **kwargs):
167
167
jdlFile .flush ()
168
168
169
169
cmd = "%s; " % preamble if preamble else ""
170
- cmd += "condor_submit %s" % jdlFile .name
170
+ cmd += "condor_submit -spool %s" % jdlFile .name
171
171
sp = subprocess .Popen (
172
172
cmd ,
173
173
shell = True ,
@@ -399,6 +399,21 @@ def getJobOutputFiles(self, **kwargs):
399
399
jobDict = {}
400
400
for jobID in jobIDList :
401
401
jobDict [jobID ] = {}
402
+
403
+ cmd = "condor_transfer_data %s" % jobID
404
+ sp = subprocess .Popen (
405
+ shlex .split (cmd ),
406
+ stdout = subprocess .PIPE ,
407
+ stderr = subprocess .PIPE ,
408
+ universal_newlines = True ,
409
+ )
410
+ _ , error = sp .communicate ()
411
+ status = sp .returncode
412
+ if status != 0 :
413
+ resultDict ["Status" ] = - 1
414
+ resultDict ["Message" ] = error
415
+ return resultDict
416
+
402
417
jobDict [jobID ]["Output" ] = "%s/%s.out" % (outputDir , jobID )
403
418
jobDict [jobID ]["Error" ] = "%s/%s.err" % (errorDir , jobID )
404
419
You can’t perform that action at this time.
0 commit comments