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