From 7c762c7e5204f95ca85157ba5fe5ab061b8abdfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20K=C3=B6ster?= Date: Wed, 16 Mar 2022 09:02:52 +0100 Subject: [PATCH] fix: mtime inventory for google storage was accidentally setting a float instead of a proper mtime object (#1484) --- snakemake/remote/GS.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snakemake/remote/GS.py b/snakemake/remote/GS.py index 47eac9743..98c6f3920 100644 --- a/snakemake/remote/GS.py +++ b/snakemake/remote/GS.py @@ -171,7 +171,7 @@ async def inventory(self, cache: snakemake.io.IOCache): iterate over the entire bucket once (and then not need to again). This includes: - cache.exist_remote - - cache_mtime + - cache.mtime - cache.size """ if cache.remaining_wait_time <= 0: @@ -184,7 +184,7 @@ async def inventory(self, cache: snakemake.io.IOCache): # By way of being listed, it exists. mtime is a datetime object name = "{}/{}".format(blob.bucket.name, blob.name) cache.exists_remote[name] = True - cache.mtime[name] = blob.updated.timestamp() + cache.mtime[name] = snakemake.io.Mtime(remote=blob.updated.timestamp()) cache.size[name] = blob.size cache.remaining_wait_time -= time.time() - start_time