diff --git a/src/DIRAC/WorkloadManagementSystem/DB/JobDB.py b/src/DIRAC/WorkloadManagementSystem/DB/JobDB.py index 6cadcb2509c..98bf6883e1e 100755 --- a/src/DIRAC/WorkloadManagementSystem/DB/JobDB.py +++ b/src/DIRAC/WorkloadManagementSystem/DB/JobDB.py @@ -908,6 +908,7 @@ def insertNewJobIntoDB( "SubmissionTime": str(datetime.datetime.utcnow()), "Owner": owner, "OwnerGroup": ownerGroup, + "VO": getVOForGroup(ownerGroup), } result = checkAndAddOwner(jdl, owner, ownerGroup) diff --git a/src/DIRAC/WorkloadManagementSystem/DB/JobDB.sql b/src/DIRAC/WorkloadManagementSystem/DB/JobDB.sql index 721eb27418c..f285a619e25 100755 --- a/src/DIRAC/WorkloadManagementSystem/DB/JobDB.sql +++ b/src/DIRAC/WorkloadManagementSystem/DB/JobDB.sql @@ -42,6 +42,7 @@ CREATE TABLE `Jobs` ( `JobName` VARCHAR(128) NOT NULL DEFAULT 'Unknown', `Owner` VARCHAR(64) NOT NULL DEFAULT 'Unknown', `OwnerGroup` VARCHAR(128) NOT NULL DEFAULT 'Unknown', + `VO` VARCHAR(32), `SubmissionTime` DATETIME DEFAULT NULL, `RescheduleTime` DATETIME DEFAULT NULL, `LastUpdateTime` DATETIME DEFAULT NULL,