]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
fix: respect elementAddDelay by using sequential startup when configured
authorJérôme Benoit <jerome.benoit@sap.com>
Thu, 26 Mar 2026 16:42:21 +0000 (17:42 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Thu, 26 Mar 2026 16:42:21 +0000 (17:42 +0100)
commit5f14c60844e65158b77170ae7f361ffbdf71c57e
treead1d3fa0b306793c551ba72fabb32582b8baaf53
parent6385d634238619f8806d0ceb6b28dd15d43a7755
fix: respect elementAddDelay by using sequential startup when configured

The perf commit 218fd550 switched to parallel Promise.allSettled for
startup speed, but broke elementAddDelay since all stations launched
simultaneously. Now uses sequential await loop when elementAddDelay > 0
and parallel allSettled when 0 or unset. Removes redundant outer
try/catch — config errors propagate as fatal, station errors are
handled per-station in both paths.
src/charging-station/Bootstrap.ts