AdhocWithFilesCache: fix call to _maybe_write_chunks_cache

This commit is contained in:
Thomas Waldmann 2025-04-23 00:14:26 +02:00
parent 7dfc88a493
commit 3d92e0812c
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01

View file

@ -1000,7 +1000,8 @@ class AdHocWithFilesCache(FilesCacheMixin, ChunksMixin):
logger.debug(f"Chunks index stats: {key}: {value}")
pi.output("Saving chunks cache")
# note: cache/chunks.* in repo has a different integrity mechanism
self._maybe_write_chunks_cache(self._chunks, force=True, clear=True)
now = datetime.now(timezone.utc)
self._maybe_write_chunks_cache(now, force=True, clear=True)
self._chunks = None # nothing there (cleared!)
pi.output("Saving cache config")
self.cache_config.save(self.manifest)