Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
atlas
athena
Commits
f359b678
Commit
f359b678
authored
10 months ago
by
John Chapman
Committed by
John Chapman
10 months ago
Browse files
Options
Downloads
Patches
Plain Diff
IOVDbAutoCfgFlags: Avoid setting GlobalTag for Generation jobs
parent
f1ebd150
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!71424
2024-05-16: merge of 24.0 into main
,
!71084
Migrating EVNTMerge_tf.py to ComponentAccumulator
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Database/IOVDbSvc/python/IOVDbAutoCfgFlags.py
+7
-3
7 additions, 3 deletions
Database/IOVDbSvc/python/IOVDbAutoCfgFlags.py
with
7 additions
and
3 deletions
Database/IOVDbSvc/python/IOVDbAutoCfgFlags.py
+
7
−
3
View file @
f359b678
...
...
@@ -4,6 +4,10 @@ from AthenaCommon.Logging import logging
log
=
logging
.
getLogger
(
'
IOVDbAutoCfgFlags
'
)
def
getLastGlobalTag
(
prevFlags
):
from
AthenaConfiguration.Enums
import
ProductionStep
if
prevFlags
.
Common
.
ProductionStep
==
ProductionStep
.
Generation
:
# No global tag should be specified in event generation jobs
return
''
from
AthenaConfiguration.AutoConfigFlags
import
GetFileMD
globaltag
=
GetFileMD
(
prevFlags
.
Input
.
Files
).
get
(
"
IOVDbGlobalTag
"
,
None
)
or
"
CONDBR2-BLKPA-RUN2-09
"
if
isinstance
(
globaltag
,
list
):
# if different tags have been used at different steps
...
...
@@ -14,7 +18,7 @@ def getDatabaseInstanceDefault(prevFlags):
isMC
=
prevFlags
.
Input
.
isMC
if
(
isMC
):
return
"
OFLP200
"
# real-data
projectName
=
prevFlags
.
Input
.
ProjectName
try
:
...
...
@@ -22,8 +26,8 @@ def getDatabaseInstanceDefault(prevFlags):
except
Exception
:
log
.
warning
(
"
Failed to extract year from project tag
"
+
projectName
+
"
. Assuming CONDBR2.
"
)
return
"
CONDBR2
"
if
(
year
>
13
):
return
"
CONDBR2
"
else
:
return
"
COMP200
"
return
"
COMP200
"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment