Skip to content

Commit 24c99ba

Browse files
authored
Merge pull request #7467 from fstagni/80_BatchSystemInfo
[8.0] fix: change location for BatchSystemInfo
2 parents 2dff975 + e9e9a08 commit 24c99ba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/DIRAC/Resources/Computing/BatchSystems/TimeLeft/TimeLeft.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def getTimeLeft(self, cpuConsumed=0.0, processors=1):
132132

133133
def _getBatchSystemPlugin(self):
134134
"""Using the name of the batch system plugin, will return an instance of the plugin class."""
135-
batchSystemInfo = gConfig.getSections("/LocalSite/BatchSystem")
135+
batchSystemInfo = gConfig.getSections("/LocalSite/BatchSystemInfo")
136136
type = batchSystemInfo.get("Type")
137137
jobID = batchSystemInfo.get("JobID")
138138
parameters = batchSystemInfo.get("Parameters")

src/DIRAC/WorkloadManagementSystem/Agent/JobAgent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ def execute(self):
297297
if queue:
298298
self.jobs[jobID]["JobReport"].setJobParameter(par_name="CEQueue", par_value=queue, sendFlag=False)
299299

300-
if batchSystem := gConfig.getValue("/LocalSite/BatchSystem/Type", ""):
300+
if batchSystem := gConfig.getValue("/LocalSite/BatchSystemInfo/Type", ""):
301301
self.jobs[jobID]["JobReport"].setJobParameter(par_name="BatchSystem", par_value=batchSystem, sendFlag=False)
302302

303303
self.log.debug(f"Before self._submitJob() ({self.ceName}CE)")

0 commit comments

Comments
 (0)