From 4f96f851ea4ae6fd90b064e92faa6e50fa2fb03e Mon Sep 17 00:00:00 2001 From: Nariman Abdullin Date: Thu, 14 Sep 2023 17:55:35 +0300 Subject: [PATCH] Delete processed files (#2590) - added an event to delete processed RawCosvFile after 7 days - refactored deleting and backing up unexpected keys in storage --- ...un.xml => save-cloud [startMinio].run.xml} | 4 +- ....xml => save-cloud [startMysqlDb].run.xml} | 4 +- db/v-2/events/event_scheduler.xml | 9 +++++ .../save/entities/cosv/RawCosvFileDto.kt | 5 ++- .../save/entities/cosv/RawCosvFile.kt | 6 ++- .../save/storage/BackupStorageUtils.kt | 38 +++++++++++++++++++ .../storage/ReactiveStorageWithDatabase.kt | 7 +--- .../storage/SuspendingStorageWithDatabase.kt | 12 ++---- .../saveourtool/save/cosv/storage/CosvKey.kt | 2 + .../save/cosv/storage/CosvStorage.kt | 14 ++++++- .../save/cosv/storage/RawCosvFileStorage.kt | 14 ++++++- .../fileuploader/CosvFileManagerComponent.kt | 2 +- 12 files changed, 93 insertions(+), 24 deletions(-) rename .run/{save-cloud [startMinioService].run.xml => save-cloud [startMinio].run.xml} (81%) rename .run/{save-cloud [startMysqlService].run.xml => save-cloud [startMysqlDb].run.xml} (81%) diff --git a/.run/save-cloud [startMinioService].run.xml b/.run/save-cloud [startMinio].run.xml similarity index 81% rename from .run/save-cloud [startMinioService].run.xml rename to .run/save-cloud [startMinio].run.xml index 15b88229ee..1e2deeb862 100644 --- a/.run/save-cloud [startMinioService].run.xml +++ b/.run/save-cloud [startMinio].run.xml @@ -1,5 +1,5 @@ - +