From 26c9fe45bcb175df352a51f027d73ff434f1b7d6 Mon Sep 17 00:00:00 2001 From: David Schultz Date: Thu, 13 Jul 2023 16:55:11 -0500 Subject: [PATCH] fix for when time is longer than 1 day --- iceprod/server/grid.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iceprod/server/grid.py b/iceprod/server/grid.py index 6eabfefb..c4764494 100644 --- a/iceprod/server/grid.py +++ b/iceprod/server/grid.py @@ -451,7 +451,7 @@ def expand_remote(cfg): processing_time = timedelta(seconds=self.queue_cfg['max_task_processing_time']) except Exception: processing_time = timedelta(seconds=86400*2) - expiration = (queued_time + processing_time).seconds + expiration = (queued_time + processing_time).total_seconds() logger.info(f's3 cred expire time: {expiration}') def presign_s3(cfg):