Skip to content

Commit

Permalink
feat: add VO in Jobs table
Browse files Browse the repository at this point in the history
  • Loading branch information
DIRACGrid CI authored and simon-mazenoux committed Sep 25, 2023
1 parent d011057 commit ae972ad
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/JobDB.py
Original file line number Diff line number Diff line change
Expand Up @@ -908,6 +908,7 @@ def insertNewJobIntoDB(
"SubmissionTime": str(datetime.datetime.utcnow()),
"Owner": owner,
"OwnerGroup": ownerGroup,
"VO": getVOForGroup(ownerGroup),
}

result = checkAndAddOwner(jdl, owner, ownerGroup)
Expand Down
1 change: 1 addition & 0 deletions src/DIRAC/WorkloadManagementSystem/DB/JobDB.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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) NOT NULL,
`SubmissionTime` DATETIME DEFAULT NULL,
`RescheduleTime` DATETIME DEFAULT NULL,
`LastUpdateTime` DATETIME DEFAULT NULL,
Expand Down

0 comments on commit ae972ad

Please sign in to comment.