From: Jérôme Benoit Date: Fri, 16 Jun 2023 19:56:18 +0000 (+0200) Subject: fix: ensure worker choice strategies internals are updated after tasks X-Git-Tag: v2.6.3~18 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=dd6a5ce306e8ffc7dccf8734c79e2ecf10d4d59b;p=poolifier.git fix: ensure worker choice strategies internals are updated after tasks submission Signed-off-by: Jérôme Benoit --- diff --git a/src/pools/abstract-pool.ts b/src/pools/abstract-pool.ts index ac4cb31e..8363ecba 100644 --- a/src/pools/abstract-pool.ts +++ b/src/pools/abstract-pool.ts @@ -766,6 +766,7 @@ export abstract class AbstractPool< workerNodeKey, this.dequeueTask(workerNodeKey) as Task ) + this.workerChoiceStrategyContext.update(workerNodeKey) } } }