refactor: partially revert wrong change
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 25 Oct 2023 16:48:49 +0000 (18:48 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 25 Oct 2023 16:48:49 +0000 (18:48 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
CHANGELOG.md
src/pools/abstract-pool.ts

index eb0fa9cd8f46057b48f1ac7908d3920e141d8222..68d1da236e32e39126191a74a45f25c9b3b87dfc 100644 (file)
@@ -9,7 +9,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 
 ### 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
index 1140ca1b4c289e6a31057528d88c6b7e638ae144..604c7af8ad32dde3959dcb75166427458999c9f7 100644 (file)
@@ -1540,13 +1540,6 @@ export abstract class AbstractPool<
     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) {