Skip to content

Commit

Permalink
fix for when time is longer than 1 day
Browse files Browse the repository at this point in the history
  • Loading branch information
dsschult committed Jul 13, 2023
1 parent 4a995be commit 26c9fe4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iceprod/server/grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 26c9fe4

Please sign in to comment.