chore: ignore queue retry error (#21069)

* chore: ignore queue retry error

* remove items
This commit is contained in:
Alex 2025-08-21 16:22:36 -05:00 committed by GitHub
parent 379c73818a
commit c443ab854c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 0 deletions

View File

@ -29,6 +29,8 @@
android:icon="@mipmap/ic_launcher" android:requestLegacyExternalStorage="true"
android:largeHeap="true" android:enableOnBackInvokedCallback="false" android:allowBackup="false">
<profileable android:shell="true" />
<service
android:name="androidx.work.impl.foreground.SystemForegroundService"
android:directBootAware="false"

View File

@ -246,6 +246,12 @@ class DriftBackupNotifier extends StateNotifier<DriftBackupState> {
}
case TaskStatus.failed:
// Ignore retry errors to avoid confusing users
if (update.exception?.description == 'Delayed or retried enqueue failed') {
_removeUploadItem(taskId);
return;
}
final currentItem = state.uploadItems[taskId];
if (currentItem == null) {
return;