feat(sync): добавлен механизм снятия блокировки синхронизации для хранилищ

This commit is contained in:
2026-05-13 14:43:27 +03:00
parent f38b3dfbb4
commit 6c18a1d741
9 changed files with 122 additions and 2 deletions

View File

@@ -27,8 +27,14 @@ class RunStorageSyncUseCase(
syncEngine.syncAllGroups { fraction, label ->
ctx.reportProgress(fraction, label)
}
ctx.log(TaskLogLevel.Info, "Storage sync finished")
ctx.reportProgress(null, "Storage sync: completed")
} finally {
}
catch (e: Exception) {
ctx.log(TaskLogLevel.Error, "Storage sync failed: ${e.message}")
ctx.reportProgress(null, "Storage sync: failed - ${e.message}")
}
finally {
running.set(false)
}
},