Skip to content

Commit 2ee6edb

Browse files
committed
rucio seems to have a different code path
1 parent bda5b7b commit 2ee6edb

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/galaxy/objectstore/rucio.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,8 @@ def _pull_into_cache(self, rel_path, **kwargs) -> bool:
349349
dest = self._get_cache_path(rel_path)
350350
auth_token = self._get_token(**kwargs)
351351
file_ok = self.rucio_broker.download(rel_path, dest, auth_token)
352+
if file_ok:
353+
self._refresh_cache_file_timestamp(rel_path)
352354
self._fix_permissions(self._get_cache_path(rel_path_dir))
353355
return file_ok
354356

@@ -572,6 +574,7 @@ def _update_from_file(
572574
except OSError:
573575
os.makedirs(os.path.dirname(cache_file))
574576
shutil.copy2(source_file, cache_file)
577+
self._refresh_cache_file_timestamp(rel_path)
575578
self._fix_file_permissions(cache_file)
576579
source_file = cache_file
577580
except OSError:

0 commit comments

Comments
 (0)