fix: upload progress bar flickering (#25829)

* fix: upload progress bar flickering

* pr feedback and more logs
This commit is contained in:
Alex
2026-02-03 09:28:29 -06:00
committed by GitHub
parent 25f2273e24
commit 23445fdcc1
3 changed files with 17 additions and 8 deletions

View File

@@ -164,9 +164,12 @@ class BackgroundUploadService {
final candidates = await _backupRepository.getCandidates(userId);
if (candidates.isEmpty) {
_logger.info("No new backup candidates found, finishing background upload");
return;
}
_logger.info("Found ${candidates.length} backup candidates for background tasks");
const batchSize = 100;
final batch = candidates.take(batchSize).toList();
List<UploadTask> tasks = [];
@@ -179,6 +182,7 @@ class BackgroundUploadService {
}
if (tasks.isNotEmpty && !shouldAbortQueuingTasks) {
_logger.info("Enqueuing ${tasks.length} background upload tasks");
await enqueueTasks(tasks);
}
}