fix(all): Fix search on others bots than boot.

This commit is contained in:
Rodrigo Rodriguez 2023-09-10 22:36:39 -03:00
parent 19ae7e1cae
commit f86f711774

View file

@ -716,8 +716,10 @@ export class GBDeployer implements IGBDeployer {
public async rebuildIndex(instance: IGBInstance, searchSchema: any) { public async rebuildIndex(instance: IGBInstance, searchSchema: any) {
// Prepares search. // Prepares search.
let release; let release;
try {
// GBLogEx.info(instance.instanceId, `Acquiring rebuildIndex mutex...`); // TODO: Semaphore logic.
//try {
GBLogEx.info(instance.instanceId, `rebuildIndex running...`);
// release = await GBServer.globals.indexSemaphore.acquire(); // release = await GBServer.globals.indexSemaphore.acquire();
// GBLogEx.info(instance.instanceId, `Acquire rebuildIndex done.`); // GBLogEx.info(instance.instanceId, `Acquire rebuildIndex done.`);
@ -775,11 +777,11 @@ export class GBDeployer implements IGBDeployer {
// release(); // release();
GBLogEx.info(instance.instanceId, `Released rebuildIndex mutex.`); GBLogEx.info(instance.instanceId, `Released rebuildIndex mutex.`);
} catch { //} catch {
// if (release) { // if (release) {
// release(); // release();
// } // }
} //}
} }
/** /**