Skip to content

Commit d2a29a7

Browse files
authored
Merge pull request #7190 from simon-mazenoux/feat-make-tqdb-vo-aware
[8.1] Make TaskQueueDB VO aware for diracx transition
2 parents 4a3efe8 + 9ce9a86 commit d2a29a7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/DIRAC/WorkloadManagementSystem/DB/TaskQueueDB.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ def __initializeDB(self):
9797
"Owner": "VARCHAR(255) NOT NULL",
9898
"OwnerDN": "VARCHAR(255)",
9999
"OwnerGroup": "VARCHAR(32) NOT NULL",
100+
"VO": "VARCHAR(32) NOT NULL",
100101
"CPUTime": "BIGINT(20) UNSIGNED NOT NULL",
101102
"Priority": "FLOAT NOT NULL",
102103
"Enabled": "TINYINT(1) NOT NULL DEFAULT 0",
@@ -251,6 +252,8 @@ def __createTaskQueue(self, tqDefDict, priority=1, connObj=False):
251252
for field in singleValueDefFields:
252253
sqlSingleFields.append(field)
253254
sqlValues.append(tqDefDict[field])
255+
sqlSingleFields.append("VO")
256+
sqlValues.append(Registry.getVOForGroup(tqDefDict["OwnerGroup"]))
254257
# Insert the TQ Disabled
255258
sqlSingleFields.append("Enabled")
256259
sqlValues.append("0")

0 commit comments

Comments
 (0)