refactor: move back pressure event emission in the helper
[poolifier.git] / src / pools / selection-strategies / fair-share-worker-choice-strategy.ts
index bf30a4764d4ffdd5287fcbbad588baddca42b193..36d1cd4c407c89de4231911bd22cb57b23350781 100644 (file)
@@ -88,7 +88,7 @@ export class FairShareWorkerChoiceStrategy<
       const workerVirtualTaskEndTimestamp =
         this.workersVirtualTaskEndTimestamp[workerNodeKey]
       if (
-        this.isWorkerNodeReady(workerNodeKey) &&
+        this.isWorkerNodeEligible(workerNodeKey) &&
         workerVirtualTaskEndTimestamp < minWorkerVirtualTaskEndTimestamp
       ) {
         minWorkerVirtualTaskEndTimestamp = workerVirtualTaskEndTimestamp