feat(sync): добавлен механизм снятия блокировки синхронизации для хранилищ
This commit is contained in:
@@ -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)
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user