Disable clustering

This commit is contained in:
Manav Rathi 2024-05-16 12:55:05 +05:30
parent adda781dcc
commit fca2d460f9
No known key found for this signature in database

View file

@ -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);
}