Skip to content

Commit 229b9aa

Browse files
author
Andrei Neagu
committed
removing archive after download
1 parent fd58947 commit 229b9aa

File tree

1 file changed

+6
-0
lines changed
  • services/dynamic-sidecar/src/simcore_service_dynamic_sidecar/modules

1 file changed

+6
-0
lines changed

services/dynamic-sidecar/src/simcore_service_dynamic_sidecar/modules/nodeports.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
from typing import cast
1313

1414
import magic
15+
from aiofiles.os import remove
1516
from aiofiles.tempfile import TemporaryDirectory as AioTemporaryDirectory
1617
from models_library.basic_types import IDStr
1718
from models_library.projects import ProjectIDStr
@@ -285,6 +286,11 @@ async def _get_data_from_port(
285286
destination_folder=final_path,
286287
progress_bar=sub_progress,
287288
)
289+
290+
with log_context(
291+
_logger, logging.DEBUG, f"archive removal '{downloaded_file}'"
292+
):
293+
await remove(downloaded_file)
288294
else:
289295
# move archive to directory as is
290296
final_path = final_path / downloaded_file.name

0 commit comments

Comments
 (0)