Skip to content

Commit

Permalink
fix: removed useless field
Browse files Browse the repository at this point in the history
  • Loading branch information
fstagni committed Jan 19, 2024
1 parent a9c084a commit 38e293d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ An example of requirements include the following::

JobRequirements =
[
OwnerDN = "/some/DN/";
Owner = "user_x";
VirtualOrganization = "VO";
Setup = "VO-Certification";
CPUTime = 17800;
Expand Down
5 changes: 2 additions & 3 deletions src/DIRAC/WorkloadManagementSystem/DB/TaskQueueDB.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
""" TaskQueueDB class is a front-end to the task queues db
"""
from collections import defaultdict
import random
import string
from collections import defaultdict
from typing import Any

from DIRAC import S_ERROR, S_OK, gConfig
Expand Down Expand Up @@ -97,7 +97,6 @@ def __initializeDB(self):
"Fields": {
"TQId": "INTEGER(11) UNSIGNED AUTO_INCREMENT NOT NULL",
"Owner": "VARCHAR(255) NOT NULL",
"OwnerDN": "VARCHAR(255)",
"OwnerGroup": "VARCHAR(32) NOT NULL",
"VO": "VARCHAR(32) NOT NULL",
"CPUTime": "BIGINT(20) UNSIGNED NOT NULL",
Expand Down Expand Up @@ -1151,7 +1150,7 @@ def __setPrioritiesForEntity(self, user, userGroup, share, connObj=False, consol
res = self._escapeString(user)
if not res["OK"]:
return res
userDN = res["Value"]
user = res["Value"]
tqCond.append(f"t.Owner= {user} ")
tqCond.append("t.TQId = j.TQId")
if consolidationFunc == "AVG":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ def __deleteSandboxFromExternalBackend(self, SEName, SEPFN):
result = self.sandboxDB.getSandboxOwner(SEName, SEPFN, hostDN, "hosts")
if not result["OK"]:
return result
owner, _ownerDN, ownerGroup = result["Value"]
owner, ownerGroup = result["Value"]

request = Request()
request.RequestName = f"RemoteSBDeletion:{SEName}|{SEPFN}:{time.time()}"
Expand Down

0 comments on commit 38e293d

Please sign in to comment.