From a71c718769218c29048eee7330c83e2d41963436 Mon Sep 17 00:00:00 2001 From: Giancarlo Romeo Date: Fri, 13 Dec 2024 11:24:37 +0100 Subject: [PATCH] add comment --- services/storage/src/simcore_service_storage/simcore_s3_dsm.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/storage/src/simcore_service_storage/simcore_s3_dsm.py b/services/storage/src/simcore_service_storage/simcore_s3_dsm.py index 89b229d424e..d41630b5230 100644 --- a/services/storage/src/simcore_service_storage/simcore_s3_dsm.py +++ b/services/storage/src/simcore_service_storage/simcore_s3_dsm.py @@ -535,6 +535,8 @@ async def delete_file( ) except S3KeyNotFoundError: _logger.warning("File %s not found in S3", file_id) + # we still need to clean up the database entry (it exists) + # and to invalidate the size of the parent directory async with self.engine.acquire() as conn: await db_file_meta_data.delete(conn, [file_id])