Skip to content

Commit a9feee2

Browse files
authored
Merge pull request #5933 from fstagni/80_fixes23
[8.0] removed last SubmitPool entries
2 parents b2e4c7f + 63795d8 commit a9feee2

File tree

5 files changed

+4
-24
lines changed

5 files changed

+4
-24
lines changed

src/DIRAC/Interfaces/API/Job.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -463,23 +463,6 @@ def setPlatform(self, platform):
463463

464464
return S_OK()
465465

466-
#############################################################################
467-
def setSubmitPool(self, backend):
468-
"""Developer function.
469-
470-
Choose submission pool on which job is executed.
471-
Default in place for users.
472-
"""
473-
# should add protection here for list of supported platforms
474-
kwargs = {"backend": backend}
475-
if not isinstance(backend, str):
476-
return self._reportError("Expected string for SubmitPool", **kwargs)
477-
478-
if not backend.lower() == "any":
479-
self._addParameter(self.workflow, "SubmitPools", "JDL", backend, "Submit Pool")
480-
481-
return S_OK()
482-
483466
#############################################################################
484467
def setCPUTime(self, timeInSecs):
485468
"""Helper function.

src/DIRAC/WorkloadManagementSystem/DB/TaskQueueDB.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818

1919
# For checks at insertion time, and not only
2020
singleValueDefFields = ("OwnerDN", "OwnerGroup", "Setup", "CPUTime")
21-
multiValueDefFields = ("Sites", "GridCEs", "BannedSites", "Platforms", "SubmitPools", "JobTypes", "Tags")
21+
multiValueDefFields = ("Sites", "GridCEs", "BannedSites", "Platforms", "JobTypes", "Tags")
2222

2323
# Used for matching
24-
multiValueMatchFields = ("GridCE", "Site", "Platform", "SubmitPool", "JobType", "Tag")
24+
multiValueMatchFields = ("GridCE", "Site", "Platform", "JobType", "Tag")
2525
bannedJobMatchFields = ("Site",)
2626
mandatoryMatchFields = ("Setup", "CPUTime")
2727
priorityIgnoredFields = ("Sites", "BannedSites")

src/DIRAC/WorkloadManagementSystem/Executor/JobScheduling.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -447,14 +447,12 @@ def __sendToTQ(self, jobState, jobManifest, sites, bannedSites, onlineSites=None
447447

448448
# Job multivalue requirement keys are specified as singles in the job descriptions
449449
# but for backward compatibility can be also plurals
450-
for key in ("SubmitPools", "SubmitPool", "JobType", "GridRequiredCEs", "GridCE", "Tags"):
450+
for key in ("JobType", "GridRequiredCEs", "GridCE", "Tags"):
451451
reqKey = key
452452
if key == "JobType":
453453
reqKey = "JobTypes"
454454
elif key == "GridRequiredCEs" or key == "GridCE": # Remove obsolete GridRequiredCEs
455455
reqKey = "GridCEs"
456-
elif key == "SubmitPools" or key == "SubmitPool": # Check: one of these 2 is obsolete
457-
reqKey = "SubmitPools"
458456
if key in jobManifest:
459457
reqCfg.setOption(reqKey, ", ".join(jobManifest.getOption(key, [])))
460458

src/DIRAC/WorkloadManagementSystem/Utilities/QueueUtilities.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def matchQueue(jobJDL, queueDict, fullMatch=False):
181181
return S_OK({"Match": False, "Reason": noMatchReasons[0]})
182182

183183
# 2. Multi-value match requirements
184-
for parameter in ["Site", "GridCE", "Platform", "SubmitPool", "JobType"]:
184+
for parameter in ["Site", "GridCE", "Platform", "JobType"]:
185185
if parameter in queueDict:
186186
valueSet = set(job.getListFromExpression(parameter))
187187
if not valueSet:

src/DIRAC/WorkloadManagementSystem/scripts/dirac_admin_show_task_queues.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ def main():
6565
"OwnerGroup",
6666
"Sites",
6767
"Platforms",
68-
"SubmitPools",
6968
"Priority",
7069
]
7170
records = []

0 commit comments

Comments
 (0)