-
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 #128 from PanDAWMS/next
3.7.6.8
- Loading branch information
Showing
61 changed files
with
1,556 additions
and
1,251 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
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 |
---|---|---|
@@ -1 +1 @@ | ||
3.7.5.4 | ||
3.7.6.8 |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Authors: | ||
- Paul Nilsson, [email protected], 2017-2018 | ||
- Paul Nilsson, [email protected], 2017-2024 | ||
|
||
api components | ||
============== | ||
|
@@ -16,7 +16,6 @@ api components | |
:maxdepth: 2 | ||
|
||
analytics | ||
benchmark | ||
data | ||
memorymonitor | ||
services |
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 |
---|---|---|
|
@@ -17,9 +17,9 @@ | |
# under the License. | ||
# | ||
# Authors: | ||
# - Mario Lassnig, [email protected], 2016-17 | ||
# - Mario Lassnig, [email protected], 2016-2017 | ||
# - Daniel Drizhuk, [email protected], 2017 | ||
# - Paul Nilsson, [email protected], 2017-24 | ||
# - Paul Nilsson, [email protected], 2017-2024 | ||
|
||
"""This is the entry point for the PanDA Pilot, executed with 'python3 pilot.py <args>'.""" | ||
|
||
|
@@ -121,19 +121,9 @@ def main() -> int: | |
) # note: assuming IPv6, fallback in place | ||
|
||
# check cvmfs if available | ||
is_available = is_cvmfs_available() | ||
if is_available is None: | ||
pass # ignore this case | ||
elif is_available is True: | ||
timestamp = get_last_update() | ||
if timestamp and timestamp > 0: | ||
logger.info('CVMFS has been validated') | ||
else: | ||
logger.warning('CVMFS is not responding - aborting pilot') | ||
return errors.CVMFSISNOTALIVE | ||
else: | ||
logger.warning('CVMFS is not alive - aborting pilot') | ||
return errors.CVMFSISNOTALIVE | ||
ec = check_cvmfs(logger) | ||
if ec: | ||
return ec | ||
|
||
if not args.rucio_host: | ||
args.rucio_host = config.Rucio.host | ||
|
@@ -202,6 +192,35 @@ def main() -> int: | |
return exitcode | ||
|
||
|
||
def check_cvmfs(logger: Any) -> int: | ||
""" | ||
Check if cvmfs is available. | ||
:param logger: logging object. | ||
:return: exit code (int). | ||
""" | ||
# skip all tests if required | ||
if os.environ.get("NO_CVMFS_OK", False): | ||
logger.info("skipping cvmfs checks") | ||
return 0 | ||
|
||
is_available = is_cvmfs_available() | ||
if is_available is None: | ||
pass # ignore this case | ||
elif is_available is True: | ||
timestamp = get_last_update() | ||
if timestamp and timestamp > 0: | ||
logger.info('CVMFS has been validated') | ||
else: | ||
logger.warning('CVMFS is not responding - aborting pilot') | ||
return errors.CVMFSISNOTALIVE | ||
else: | ||
logger.warning('CVMFS is not alive - aborting pilot') | ||
return errors.CVMFSISNOTALIVE | ||
|
||
return 0 | ||
|
||
|
||
def str2bool(var: str) -> bool: | ||
""" | ||
Convert string to bool. | ||
|
@@ -638,7 +657,7 @@ def create_main_work_dir() -> (int, str): | |
f"failed to create workdir at {_mainworkdir} -- aborting: {error}", | ||
file=sys.stderr, | ||
) | ||
exitcode = shell_exit_code(error._errorCode) | ||
exitcode = shell_exit_code(error._error_code) | ||
else: | ||
_mainworkdir = getcwd() | ||
|
||
|
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 |
---|---|---|
|
@@ -17,7 +17,7 @@ | |
# under the License. | ||
# | ||
# Authors: | ||
# - Paul Nilsson, [email protected], 2018-2023 | ||
# - Paul Nilsson, [email protected], 2018-2024 | ||
|
||
"""Functions for performing analytics including fitting of data.""" | ||
|
||
|
@@ -379,8 +379,6 @@ def chi2(self): | |
def set_slope(self): | ||
""" | ||
Calculate and set the slope of the linear fit. | ||
:return: | ||
""" | ||
if self._ss2 and self._ss and self._ss != 0: | ||
self._slope = self._ss2 / float(self._ss) | ||
|
@@ -398,8 +396,6 @@ def slope(self): | |
def set_intersect(self): | ||
""" | ||
Calculate and set the intersect of the linear fit. | ||
:return: | ||
""" | ||
if self._ym and self._slope and self._xm: | ||
self._intersect = self._ym - self._slope * self._xm | ||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.