fix: fix race condition in worker choice strategies
[poolifier.git] / src / pools / selection-strategies / fair-share-worker-choice-strategy.ts
index fc4bd1fd4de4f281c8dbae20fcf3014ca0a5565f..f293bbb7cbe00eacb8c5e1e0d30b0e670da5a3ed 100644 (file)
@@ -84,9 +84,6 @@ export class FairShareWorkerChoiceStrategy<
     let minWorkerVirtualTaskEndTimestamp = Infinity
     let chosenWorkerNodeKey: number | undefined
     for (const [workerNodeKey] of this.pool.workerNodes.entries()) {
-      if (!this.isWorkerNodeEligible(workerNodeKey)) {
-        continue
-      }
       if (this.workersVirtualTaskEndTimestamp[workerNodeKey] == null) {
         this.computeWorkerVirtualTaskEndTimestamp(workerNodeKey)
       }