-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from PanDAWMS/next
3.2.3.27
- Loading branch information
Showing
18 changed files
with
178 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.2.2.22 | ||
3.2.3.27 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
# | ||
# Authors: | ||
# - Alexey Anisenkov, [email protected], 2018-2021 | ||
# - Paul Nilsson, [email protected], 2018-2019 | ||
# - Paul Nilsson, [email protected], 2018-2022 | ||
|
||
""" | ||
Information provider from external source(s) | ||
|
@@ -128,8 +128,7 @@ def jsonparser_panda(c): | |
return {pandaqueue: dat} | ||
|
||
queuedata_url = (os.environ.get('QUEUEDATA_SERVER_URL') or getattr(config.Information, 'queuedata_url', '')).format(**{'pandaqueue': pandaqueues[0]}) | ||
|
||
cric_url = getattr(config.Information, 'queues_url', None) or 'https://atlas-cric.cern.ch/cache/schedconfig/{pandaqueue}.json' | ||
cric_url = getattr(config.Information, 'queues_url', None) | ||
cric_url = cric_url.format(pandaqueue=pandaqueues[0] if len(pandaqueues) == 1 else 'pandaqueues') | ||
cvmfs_path = self.get_cvmfs_path(getattr(config.Information, 'queuedata_cvmfs', None), 'cric_pandaqueues.json') | ||
|
||
|
@@ -178,11 +177,13 @@ def load_storage_data(self, ddmendpoints=[], priority=[], cache_time=60): | |
cache_dir = os.environ.get('PILOT_HOME', '.') | ||
|
||
# list of sources to fetch ddmconf data from | ||
_storagedata_url = os.environ.get('QUEUEDATA_SERVER_URL', '') | ||
storagedata_url = _storagedata_url if _storagedata_url else getattr(config.Information, 'storages_url', None) | ||
cvmfs_path = self.get_cvmfs_path(config.Information.storages_cvmfs, 'cric_ddmendpoints.json') | ||
sources = {'CVMFS': {'url': cvmfs_path, | ||
'nretry': 1, | ||
'fname': os.path.join(cache_dir, getattr(config.Information, 'storages_cache', None) or 'agis_ddmendpoints.json')}, | ||
'CRIC': {'url': (getattr(config.Information, 'storages_url', None) or 'https://atlas-cric.cern.ch/cache/ddmendpoints.json'), | ||
'CRIC': {'url': storagedata_url, | ||
'nretry': 3, | ||
'sleep_time': lambda: 15 + random.randint(0, 30), ## max sleep time 45 seconds between retries | ||
'cache_time': 3 * 60 * 60, # 3 hours | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.