We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7aa10f5 commit b7f104eCopy full SHA for b7f104e
3 files changed
src/DIRAC/WorkloadManagementSystem/Client/Matcher.py
@@ -196,7 +196,7 @@ def _processResourceDescription(self, resourceDescription):
196
maxRAM = resourceDescription.get("MaxRAM")
197
if maxRAM:
198
try:
199
- maxRAM = int(maxRAM / 1000)
+ maxRAM = int(maxRAM)
200
except ValueError:
201
maxRAM = None
202
nProcessors = resourceDescription.get("NumberOfProcessors")
src/DIRAC/WorkloadManagementSystem/Executor/test/Test_Executor.py
@@ -55,8 +55,8 @@ def test__applySiteFilter(sites, banned, expected):
55
({"Tag": "bof"}, ["bof"]),
56
({"Tags": "bof, bif"}, ["bof", "bif"]),
57
({"MaxRAM": 2500}, ["2500MB"]),
58
- ({"Tags": "bof, bif", "MaxRAM": 2048}, ["bof", "bif", "2500MB"]),
59
- ({"WholeNode": "yes", "MaxRAM": 2048}, ["WholeNode", "MultiProcessor", "2500MB"]),
+ ({"Tags": "bof, bif", "MaxRAM": 2048}, ["bof", "bif", "2048MB"]),
+ ({"WholeNode": "yes", "MaxRAM": 2048}, ["WholeNode", "MultiProcessor", "2048MB"]),
60
({"NumberOfProcessors": 1}, []),
61
({"NumberOfProcessors": 4}, ["MultiProcessor", "4Processors"]),
62
({"NumberOfProcessors": 4, "MinNumberOfProcessors": 2}, ["MultiProcessor", "4Processors"]),
tests/Jenkins/dirac-cfg-update-server.py
@@ -1,12 +1,12 @@
1
#!/usr/bin/env python
2
-""" update local cfg
3
-"""
+"""update local cfg"""
+
4
import os
5
import sys
6
7
from DIRAC.Core.Base.Script import Script
8
9
-Script.setUsageMessage("\n".join([__doc__.split("\n")[1], "Usage:", f" {Script.scriptName} [options] ... DB ..."]))
+Script.setUsageMessage("\n".join([__doc__.split("\n")[0], "Usage:", f" {Script.scriptName} [options] ... DB ..."]))
10
11
Script.parseCommandLine()
12
@@ -555,6 +555,8 @@
555
556
csAPI.createSection("Systems/WorkloadManagement/Production/JobWrapper/")
557
csAPI.setOption("Systems/WorkloadManagement/Production/JobWrapper/MinOutputDataBufferGB", 1)
558
+csAPI.createSection("Systems/WorkloadManagement/JobWrapper/")
559
+csAPI.setOption("Systems/WorkloadManagement/JobWrapper/MinOutputDataBufferGB", 1)
560
561
# Final action: commit in CS
562
res = csAPI.commit()
0 commit comments