ATLAS Offline Software
Loading...
Searching...
No Matches
UseFrontier.py
Go to the documentation of this file.
1# Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
2#
3# @brief Switch database to using FRONTIER, but with a fallback
4# to DBRelease if FRONTIER_SERVER is undefined (e.g., on HPC)
5
6import os
7from AthenaCommon.Logging import logging
8log = logging.getLogger('UseFrontier.py')
9
10if(os.environ.get('FRONTIER_SERVER')):
11 log.info('Enabling FRONTIER DB access')
12 from DBReplicaSvc.DBReplicaSvcConf import DBReplicaSvc
13 ServiceMgr+=DBReplicaSvc(COOLSQLiteVetoPattern="DBRelease")
14else:
15 log.info('Using default DB access')
if(febId1==febId2)