fix: update worker choice internals without tasks queuing
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 16 Jun 2023 20:28:12 +0000 (22:28 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 16 Jun 2023 20:28:12 +0000 (22:28 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/pools/abstract-pool.ts

index 8363ecba9f8d3c98d9071023e99f4b7b47053e7a..13bc904a07bf12a02f1958991c53ef54a21889c2 100644 (file)
@@ -766,8 +766,8 @@ export abstract class AbstractPool<
               workerNodeKey,
               this.dequeueTask(workerNodeKey) as Task<Data>
             )
-            this.workerChoiceStrategyContext.update(workerNodeKey)
           }
+          this.workerChoiceStrategyContext.update(workerNodeKey)
         }
       }
     }