more progress logging

This commit is contained in:
Christian Schwarz
2024-01-09 09:47:12 +00:00
parent 5f4fe8f72a
commit af270a2ba0

View File

@@ -110,10 +110,13 @@ def single_timeline(
assert not layer.remote
# take snapshot after download all layers so tenant dir restoration is fast
log.info(f"take snapshot")
# TODO: use overlayfs to make this step less costly; we'd implement half of docker at that point
if save_snapshot:
log.info(f"take snapshot")
shutil.copytree(env.repo_dir, snapshot_dir.path)
snapshot_dir.set_initialized()
else:
log.info("skip taking snapshot")
log.info("ready")
return SingleTimeline(env, template_timeline, tenants)