Skip to content

Commit 9ba58e7

Browse files
committed
fix: adding Owner as JDL requirement
1 parent 5ac820b commit 9ba58e7

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/DIRAC/WorkloadManagementSystem/DB/JobDBUtils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ def checkAndPrepareJob(jobID, classAdJob, classAdReq, owner, ownerGroup, jobAttr
8484
if vo:
8585
classAdJob.insertAttributeString("VirtualOrganization", vo)
8686

87+
classAdReq.insertAttributeString("Owner", owner)
8788
classAdReq.insertAttributeString("OwnerGroup", ownerGroup)
8889
if vo:
8990
classAdReq.insertAttributeString("VirtualOrganization", vo)

tests/Integration/WorkloadManagementSystem/Test_JobDB.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ def test_getJobJDL_nonOriginal(jobDB: JobDB):
168168
JobRequirements =
169169
[
170170
CPUTime = 86400;
171+
Owner = "owner";
171172
OwnerGroup = "ownerGroup";
172173
UserPriority = 1;
173174
VirtualOrganization = "vo";

0 commit comments

Comments
 (0)