π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Inline
Manav Rathida1ae5d2a47a
diff --git a/web/apps/photos/src/services/machineLearning/machineLearningService.ts b/web/apps/photos/src/services/machineLearning/machineLearningService.tsindex 5050b9ff7a..7aeb93b3d6 100644--- a/web/apps/photos/src/services/machineLearning/machineLearningService.ts+++ b/web/apps/photos/src/services/machineLearning/machineLearningService.ts@@ -49,7 +49,6 @@ import {FaceEmbeddingService,MLLibraryData,} from "services/ml/types";-import { logQueueStats } from "utils/machineLearning";import arcfaceAlignmentService from "./arcfaceAlignmentService";import arcfaceCropService from "./arcfaceCropService";import dbscanClusteringService from "./dbscanClusteringService";@@ -903,3 +902,15 @@ function LocalFileMlDataToServerFileMl(imageDimensions.width,);}++export function logQueueStats(queue: PQueue, name: string) {+ queue.on("active", () =>+ log.info(+ `queuestats: ${name}: Active, Size: ${queue.size} Pending: ${queue.pending}`,+ ),+ );+ queue.on("idle", () => log.info(`queuestats: ${name}: Idle`));+ queue.on("error", (error) =>+ console.error(`queuestats: ${name}: Error, `, error),+ );+}diff --git a/web/apps/photos/src/services/machineLearning/mlWorkManager.ts b/web/apps/photos/src/services/machineLearning/mlWorkManager.tsindex b383775731..9f3b401bf5 100644--- a/web/apps/photos/src/services/machineLearning/mlWorkManager.ts+++ b/web/apps/photos/src/services/machineLearning/mlWorkManager.ts@@ -11,9 +11,9 @@ import { JobResult } from "types/common/job";import { EnteFile } from "types/file";import { getDedicatedMLWorker } from "utils/comlink/ComlinkMLWorker";import { SimpleJob } from "utils/common/job";-import { logQueueStats } from "utils/machineLearning";import mlIDbStorage from "utils/storage/mlIDbStorage";import { DedicatedMLWorker } from "worker/ml.worker";+import { logQueueStats } from "./machineLearningService";const LIVE_SYNC_IDLE_DEBOUNCE_SEC = 30;const LIVE_SYNC_QUEUE_TIMEOUT_SEC = 300;diff --git a/web/apps/photos/src/utils/machineLearning/index.ts b/web/apps/photos/src/utils/machineLearning/index.tsindex 1891a18719..9198296cc9 100644--- a/web/apps/photos/src/utils/machineLearning/index.ts+++ b/web/apps/photos/src/utils/machineLearning/index.ts@@ -245,14 +245,3 @@ export function areFaceIdsSame(ofFaces: Array<Face>, toFaces: Array<Face>) {);}-export function logQueueStats(queue: PQueue, name: string) {- queue.on("active", () =>- log.info(- `queuestats: ${name}: Active, Size: ${queue.size} Pending: ${queue.pending}`,- ),- );- queue.on("idle", () => log.info(`queuestats: ${name}: Idle`));- queue.on("error", (error) =>- console.error(`queuestats: ${name}: Error, `, error),- );-}