[web] Disable clustering
This commit is contained in:
parent
55822d50ed
commit
25435dd693
|
@ -166,13 +166,19 @@ class MachineLearningService {
|
||||||
await this.syncFiles(syncContext);
|
await this.syncFiles(syncContext);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO-ML(MR): Forced disable clustering. It doesn't currently work,
|
||||||
|
// need to finalize it before we move out of beta.
|
||||||
|
//
|
||||||
|
// > Error: Failed to execute 'transferToImageBitmap' on
|
||||||
|
// > 'OffscreenCanvas': ImageBitmap construction failed
|
||||||
|
/*
|
||||||
if (
|
if (
|
||||||
syncContext.outOfSyncFiles.length <= 0 ||
|
syncContext.outOfSyncFiles.length <= 0 ||
|
||||||
// TODO-ML(MR): Forced disable.
|
|
||||||
(syncContext.nSyncedFiles === batchSize && Math.random() < 0)
|
(syncContext.nSyncedFiles === batchSize && Math.random() < 0)
|
||||||
) {
|
) {
|
||||||
await this.syncIndex(syncContext);
|
await this.syncIndex(syncContext);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
const mlSyncResult: MLSyncResult = {
|
const mlSyncResult: MLSyncResult = {
|
||||||
nOutOfSyncFiles: syncContext.outOfSyncFiles.length,
|
nOutOfSyncFiles: syncContext.outOfSyncFiles.length,
|
||||||
|
|
Loading…
Reference in a new issue