Expand description
Resolve db_snapshot AssetLocations into local cache paths, once per
unique location, before the parallel spawn fanout.
Cache layout is: {ns_base_dir}/{sha256(loc_str)}.tgz. The
provider’s initialize_db_snapshot now takes a &Path to this
already-resolved file and only has to extract it.
Functions§
- cleanup_
db_ snapshot_ cache - Remove cache tarballs after all consumers have finished extracting them,
gated by the
ZOMBIE_RM_TGZ_AFTER_EXTRACTenv var. Best-effort: errors are logged and swallowed (cleanup must never fail spawn). - resolve_
db_ snapshots - Walk every node’s
db_snapshot, deduplicate byAssetLocation, and fetch each unique location once into the namespace cache. Returns a map from the originalAssetLocationto the local cachePathBuf.
Type Aliases§
- Resolved
DbSnapshots - Lookup map produced by
resolve_db_snapshots.