Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
### Fixed
-- Ensure worker ready response can be received only once.
- Ensure pool ready event can be emitted only once.
## [3.0.4] - 2023-10-20
const workerInfo = this.getWorkerInfo(
this.getWorkerNodeKeyByWorkerId(message.workerId)
)
- if (!this.started && workerInfo.ready) {
- throw new Error(
- `Ready response already received by worker ${
- message.workerId as number
- }`
- )
- }
workerInfo.ready = message.ready as boolean
workerInfo.taskFunctionNames = message.taskFunctionNames
if (this.ready) {