new(all): Paralel bot loading.
This commit is contained in:
parent
43c05ad135
commit
55533b6b80
1 changed files with 2 additions and 3 deletions
|
@ -202,11 +202,10 @@ export class GBMinService {
|
||||||
|
|
||||||
await throttledPromiseAll(instances.map((async instance => {
|
await throttledPromiseAll(instances.map((async instance => {
|
||||||
try {
|
try {
|
||||||
this.bar1.update(i++, { botId: instance.botId });
|
|
||||||
|
|
||||||
await this['mountBot'](instance);
|
await this['mountBot'](instance);
|
||||||
GBDeployer.mountGBKBAssets(`${instance.botId}.gbkb`,
|
GBDeployer.mountGBKBAssets(`${instance.botId}.gbkb`,
|
||||||
instance.botId, `${instance.botId}.gbkb`);
|
instance.botId, `${instance.botId}.gbkb`);
|
||||||
|
this.bar1.update(i++, { botId: instance.botId });
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
GBLog.error(`Error mounting bot ${instance.botId}: ${error.message}\n${error.stack}`);
|
GBLog.error(`Error mounting bot ${instance.botId}: ${error.message}\n${error.stack}`);
|
||||||
|
|
Loading…
Add table
Reference in a new issue