File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/DIRAC/Resources/Computing/BatchSystems Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 63
63
# Requirements
64
64
# ------------
65
65
request_cpus = %(processors)s
66
+ requirements = NumJobStarts == 0
66
67
67
68
# Exit options
68
69
# ------------
74
75
# A subcode of our choice to identify who put the job on hold
75
76
on_exit_hold_subcode = %(holdReasonSubcode)s
76
77
# Jobs are then deleted from the system after N days if they are not idle or running
77
- periodic_remove = (JobStatus != 1) && (JobStatus != 2) && ((time() - EnteredCurrentStatus) > (%(daysToKeepRemoteLogs)s * 24 * 3600))
78
+ periodic_remove = ((JobStatus == 1) && (NumJobStarts > 0)) || \
79
+ ((JobStatus != 1) && (JobStatus != 2) && ((time() - EnteredCurrentStatus) > (%(daysToKeepRemoteLogs)s * 24 * 3600))
78
80
79
81
# Specific options
80
82
# ----------------
@@ -143,8 +145,6 @@ def submitJob(self, **kwargs):
143
145
preamble = kwargs .get ("Preamble" )
144
146
145
147
jdlFile = tempfile .NamedTemporaryFile (dir = outputDir , suffix = ".jdl" , mode = "wt" )
146
- scheddOptions = 'requirements = OpSys == "LINUX"\n '
147
- scheddOptions += "gentenv = False"
148
148
jdlFile .write (
149
149
subTemplate
150
150
% dict (
You can’t perform that action at this time.
0 commit comments