From bfe5b2cd5f44acdc34deb25e4c623640c8184df6 Mon Sep 17 00:00:00 2001 From: Yan Grange <12-grange@users.noreply.git.astron.nl> Date: Tue, 15 Nov 2022 17:01:31 +0000 Subject: [PATCH] Fix casting in days to seconds computation --- esap_client/connectors/rucio.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esap_client/connectors/rucio.py b/esap_client/connectors/rucio.py index dd7a903..1b24e19 100644 --- a/esap_client/connectors/rucio.py +++ b/esap_client/connectors/rucio.py @@ -23,7 +23,7 @@ else: running_in_dlaas = True -class NotInDLaaSError(RuntimeError): +class NotInDLaaSError(RuntimeError):ยง """Exception raised when functions are executed outside the Data Lake as a Service environment. Inherits from RuntimeError. @@ -91,7 +91,7 @@ class Rucio(BaseConnector): active_rules = set() active_dids = set() lifetime = ( - os.environ["RUCIO_REPLICATION_RULE_LIFETIME_DAYS"] * 24 * 60 * 60 + int(os.environ["RUCIO_REPLICATION_RULE_LIFETIME_DAYS"]) * 24 * 60 * 60 ) # in seconds local_RSE = os.environ["RUCIO_DESTINATION_RSE"] local_basepath = os.environ["RUCIO_RSE_MOUNT_PATH"] -- GitLab