We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 72dd494 + 108e984 commit a691745Copy full SHA for a691745
web/packages/new/photos/services/ml/worker.ts
@@ -226,7 +226,15 @@ export class MLWorker {
226
this.state = "indexing";
227
228
// Use the liveQ if present, otherwise get the next batch to backfill.
229
- const items = liveQ.length ? liveQ : await this.backfillQ();
+ const items = liveQ.length
230
+ ? liveQ
231
+ : await this.backfillQ().catch((e: unknown) => {
232
+ // Ignore the error (e.g. a network failure) when determining
233
+ // the items to backfill, and return an empty items array so
234
+ // that the next retry happens after an exponential backoff.
235
+ log.warn("Ignoring error when determining backfillQ", e);
236
+ return [];
237
+ });
238
239
this.countSinceLastIdle += items.length;
240
0 commit comments