Skip to content

High performance self-hosted photo and video management solution.

chore: ignore queue retry error (#21069)

Alexc443ab854cdc
diff --git a/mobile/android/app/src/main/AndroidManifest.xml b/mobile/android/app/src/main/AndroidManifest.xml
index eee4ff2ddc..c6e04e5a10 100644
--- a/mobile/android/app/src/main/AndroidManifest.xml
+++ b/mobile/android/app/src/main/AndroidManifest.xml
@@ -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"
diff --git a/mobile/lib/providers/backup/drift_backup.provider.dart b/mobile/lib/providers/backup/drift_backup.provider.dart
index 1228783737..418410de0c 100644
--- a/mobile/lib/providers/backup/drift_backup.provider.dart
+++ b/mobile/lib/providers/backup/drift_backup.provider.dart
@@ -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;