mirror of
https://github.com/samsonjs/immich.git
synced 2026-04-27 15:07:45 +00:00
chore: ignore queue retry error (#21069)
* chore: ignore queue retry error * remove items
This commit is contained in:
parent
379c73818a
commit
c443ab854c
2 changed files with 8 additions and 0 deletions
|
|
@ -29,6 +29,8 @@
|
||||||
android:icon="@mipmap/ic_launcher" android:requestLegacyExternalStorage="true"
|
android:icon="@mipmap/ic_launcher" android:requestLegacyExternalStorage="true"
|
||||||
android:largeHeap="true" android:enableOnBackInvokedCallback="false" android:allowBackup="false">
|
android:largeHeap="true" android:enableOnBackInvokedCallback="false" android:allowBackup="false">
|
||||||
|
|
||||||
|
<profileable android:shell="true" />
|
||||||
|
|
||||||
<service
|
<service
|
||||||
android:name="androidx.work.impl.foreground.SystemForegroundService"
|
android:name="androidx.work.impl.foreground.SystemForegroundService"
|
||||||
android:directBootAware="false"
|
android:directBootAware="false"
|
||||||
|
|
|
||||||
|
|
@ -246,6 +246,12 @@ class DriftBackupNotifier extends StateNotifier<DriftBackupState> {
|
||||||
}
|
}
|
||||||
|
|
||||||
case TaskStatus.failed:
|
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];
|
final currentItem = state.uploadItems[taskId];
|
||||||
if (currentItem == null) {
|
if (currentItem == null) {
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue