fix: ensure worker choice is retried at least the pool max size
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Tue, 19 Dec 2023 21:22:17 +0000 (22:22 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Tue, 19 Dec 2023 21:22:17 +0000 (22:22 +0100)
commit26ce26ca8861318068427cc86697103e7a3ddbf4
tree2ed2b721626a7941e58aa7d5616b5f12a21c074d
parent55d7d6002049be09a06b08da26febe2e8bfa494b
fix: ensure worker choice is retried at least the pool max size

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
21 files changed:
docs/api.md
src/pools/abstract-pool.ts
src/pools/cluster/dynamic.ts
src/pools/cluster/fixed.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-elu-worker-choice-strategy.ts
src/pools/selection-strategies/least-used-worker-choice-strategy.ts
src/pools/selection-strategies/round-robin-worker-choice-strategy.ts
src/pools/selection-strategies/selection-strategies-types.ts
src/pools/selection-strategies/weighted-round-robin-worker-choice-strategy.ts
src/pools/selection-strategies/worker-choice-strategy-context.ts
src/pools/thread/dynamic.ts
src/pools/thread/fixed.ts
src/utils.ts
tests/pools/abstract-pool.test.mjs
tests/pools/selection-strategies/selection-strategies.test.mjs
tests/pools/selection-strategies/worker-choice-strategy-context.test.mjs
tests/utils.test.mjs