소스 검색

Disable clustering

Manav Rathi 1 년 전
부모
커밋
fca2d460f9
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 3
      web/apps/photos/src/services/machineLearning/machineLearningService.ts

+ 2 - 3
web/apps/photos/src/services/machineLearning/machineLearningService.ts

@@ -258,11 +258,10 @@ class MachineLearningService {
             await this.syncFiles(syncContext);
         }
 
-        // TODO: running index before all files are on latest ml version
-        // may be need to just take synced files on latest ml version for indexing
         if (
             syncContext.outOfSyncFiles.length <= 0 ||
-            (syncContext.nSyncedFiles === batchSize && Math.random() < 0.2)
+            // TODO-ML(MR): Forced disable.
+            (syncContext.nSyncedFiles === batchSize && Math.random() < 0)
         ) {
             await this.syncIndex(syncContext);
         }