Skip to content

Commit

Permalink
Merge pull request DIRACGrid#7190 from simon-mazenoux/feat-make-tqdb-…
Browse files Browse the repository at this point in the history
…vo-aware

[8.1] Make TaskQueueDB VO aware for diracx transition
  • Loading branch information
fstagni authored Sep 25, 2023
2 parents 4a3efe8 + 9ce9a86 commit d2a29a7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/DIRAC/WorkloadManagementSystem/DB/TaskQueueDB.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ def __initializeDB(self):
"Owner": "VARCHAR(255) NOT NULL",
"OwnerDN": "VARCHAR(255)",
"OwnerGroup": "VARCHAR(32) NOT NULL",
"VO": "VARCHAR(32) NOT NULL",
"CPUTime": "BIGINT(20) UNSIGNED NOT NULL",
"Priority": "FLOAT NOT NULL",
"Enabled": "TINYINT(1) NOT NULL DEFAULT 0",
Expand Down Expand Up @@ -251,6 +252,8 @@ def __createTaskQueue(self, tqDefDict, priority=1, connObj=False):
for field in singleValueDefFields:
sqlSingleFields.append(field)
sqlValues.append(tqDefDict[field])
sqlSingleFields.append("VO")
sqlValues.append(Registry.getVOForGroup(tqDefDict["OwnerGroup"]))
# Insert the TQ Disabled
sqlSingleFields.append("Enabled")
sqlValues.append("0")
Expand Down

0 comments on commit d2a29a7

Please sign in to comment.