fix(basic.gblib): update ChatServices.ts #420

Closed
eltociear wants to merge 2540 commits from patch-1 into main
Showing only changes of commit f86f711774 - Show all commits

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();
// } // }
} //}
} }
/** /**