X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcharging-station%2FBootstrap.ts;h=ba4d14a8369b36e6a0696027d66ec9fb7906e2ca;hb=b2b606263e2676354259164d532ff9aa91ccdf87;hp=e329a65b4e32ffa1018aa6b01a35b32ffacd0649;hpb=fba11dc656de000473d0639be238c8151f217d93;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/Bootstrap.ts b/src/charging-station/Bootstrap.ts index e329a65b..ba4d14a8 100644 --- a/src/charging-station/Bootstrap.ts +++ b/src/charging-station/Bootstrap.ts @@ -7,7 +7,7 @@ import { isMainThread } from 'node:worker_threads'; import chalk from 'chalk'; -import { waitForChargingStationEvents } from './ChargingStationUtils'; +import { waitChargingStationEvents } from './ChargingStationUtils'; import type { AbstractUIServer } from './ui-server/AbstractUIServer'; import { UIServerFactory } from './ui-server/UIServerFactory'; import { version } from '../../package.json' assert { type: 'json' }; @@ -142,6 +142,12 @@ export class Bootstrap extends EventEmitter { }` ) ); + Configuration.workerDynamicPoolInUse() && + console.warn( + chalk.yellow( + 'Charging stations simulator is using dynamic pool mode. This is an experimental feature with known issues.\nPlease consider using static pool or worker set mode instead' + ) + ); console.info(chalk.green('Worker set/pool information:'), this.workerImplementation?.info); this.started = true; this.starting = false; @@ -168,7 +174,7 @@ export class Bootstrap extends EventEmitter { ) ); await Promise.race([ - waitForChargingStationEvents( + waitChargingStationEvents( this, ChargingStationWorkerMessageEvents.stopped, this.numberOfChargingStations