Skip to content

Commit

Permalink
fix: adding Owner as JDL requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
fstagni committed Aug 3, 2023
1 parent 5ac820b commit 9ba58e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/DIRAC/WorkloadManagementSystem/DB/JobDBUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ def checkAndPrepareJob(jobID, classAdJob, classAdReq, owner, ownerGroup, jobAttr
if vo:
classAdJob.insertAttributeString("VirtualOrganization", vo)

classAdReq.insertAttributeString("Owner", owner)
classAdReq.insertAttributeString("OwnerGroup", ownerGroup)
if vo:
classAdReq.insertAttributeString("VirtualOrganization", vo)
Expand Down
1 change: 1 addition & 0 deletions tests/Integration/WorkloadManagementSystem/Test_JobDB.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ def test_getJobJDL_nonOriginal(jobDB: JobDB):
JobRequirements =
[
CPUTime = 86400;
Owner = "owner";
OwnerGroup = "ownerGroup";
UserPriority = 1;
VirtualOrganization = "vo";
Expand Down

0 comments on commit 9ba58e7

Please sign in to comment.