π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[web] Retry on failures in fetching already indexed items
Manav Rathi108e984f294d
diff --git a/web/packages/new/photos/services/ml/worker.ts b/web/packages/new/photos/services/ml/worker.tsindex 16fab74349..6374eeb8d0 100644--- a/web/packages/new/photos/services/ml/worker.ts+++ b/web/packages/new/photos/services/ml/worker.ts@@ -226,7 +226,15 @@ export class MLWorker {this.state = "indexing";// Use the liveQ if present, otherwise get the next batch to backfill.- const items = liveQ.length ? liveQ : await this.backfillQ();+ const items = liveQ.length+ ? liveQ+ : await this.backfillQ().catch((e: unknown) => {+ // Ignore the error (e.g. a network failure) when determining+ // the items to backfill, and return an empty items array so+ // that the next retry happens after an exponential backoff.+ log.warn("Ignoring error when determining backfillQ", e);+ return [];+ });this.countSinceLastIdle += items.length;