From 8e5408bdab23e9ca79ca34c52ea4ceba3ec7af47 Mon Sep 17 00:00:00 2001 From: Simon Mazenoux Date: Fri, 22 Sep 2023 14:45:34 +0200 Subject: [PATCH] feat: add vo column in jobs db --- src/diracx/db/sql/jobs/db.py | 1 + src/diracx/db/sql/jobs/schema.py | 1 + 2 files changed, 2 insertions(+) diff --git a/src/diracx/db/sql/jobs/db.py b/src/diracx/db/sql/jobs/db.py index 273fe81c..7e899053 100644 --- a/src/diracx/db/sql/jobs/db.py +++ b/src/diracx/db/sql/jobs/db.py @@ -170,6 +170,7 @@ async def insert( "SubmissionTime": datetime.now(tz=timezone.utc), "Owner": owner, "OwnerGroup": owner_group, + "VO": vo, } jobManifest = returnValueOrRaise(checkAndAddOwner(jdl, owner, owner_group)) diff --git a/src/diracx/db/sql/jobs/schema.py b/src/diracx/db/sql/jobs/schema.py index fe76eedd..78d8c3a9 100644 --- a/src/diracx/db/sql/jobs/schema.py +++ b/src/diracx/db/sql/jobs/schema.py @@ -70,6 +70,7 @@ class Jobs(JobDBBase): Owner = Column("Owner", String(64), default="Unknown") OwnerDN = Column("OwnerDN", String(255), default="Unknown") OwnerGroup = Column("OwnerGroup", String(128), default="Unknown") + VO = Column("VO", String(32)) SubmissionTime = NullColumn("SubmissionTime", DateTime) RescheduleTime = NullColumn("RescheduleTime", DateTime) LastUpdateTime = NullColumn("LastUpdateTime", DateTime)