Option to keep the compute IDs unchanged when exporting a project

This commit is contained in:
grossmj committed 2024-07-06 17:08:16 +02:00
1 parent 29f848d833
commit d54c9db8c3
7 files changed
+35 -23

No files matched your search

+1 -1
View File
@@ -96,7 +96,7 @@ class Snapshot:
with tempfile.TemporaryDirectory(dir=snapshot_directory) as tmpdir:
# Do not compress the snapshots
with aiozipstream.ZipFile(compression=zipfile.ZIP_STORED) as zstream:
await export_project(zstream, self._project, tmpdir, keep_compute_id=True, allow_all_nodes=True)
await export_project(zstream, self._project, tmpdir, keep_compute_ids=True, allow_all_nodes=True)
async with aiofiles.open(self.path, 'wb') as f:
async for chunk in zstream:
await f.write(chunk)