fix: fix worker choice strategies behavior
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Thu, 2 May 2024 11:13:11 +0000 (13:13 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Thu, 2 May 2024 11:13:11 +0000 (13:13 +0200)
commite0843544927da7ce67c7a6b84c5bf402dd47c1bb
tree5c1b41732dcc3c5ef4859dede694d3af92696164
parent181af286689e0b42fcac115ace6541364a943af2
fix: fix worker choice strategies behavior

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
12 files changed:
CHANGELOG.md
docs/api.md
src/pools/abstract-pool.ts
src/pools/selection-strategies/abstract-worker-choice-strategy.ts
src/pools/selection-strategies/fair-share-worker-choice-strategy.ts
src/pools/selection-strategies/interleaved-weighted-round-robin-worker-choice-strategy.ts
src/pools/selection-strategies/least-busy-worker-choice-strategy.ts
src/pools/selection-strategies/least-used-worker-choice-strategy.ts
src/pools/selection-strategies/weighted-round-robin-worker-choice-strategy.ts
tests/pools/abstract-pool.test.mjs
tests/pools/selection-strategies/selection-strategies.test.mjs
tests/pools/selection-strategies/weighted-round-robin-worker-choice-strategy.test.mjs