]> Piment Noir Git Repositories - poolifier.git/commit
fix(pool): keep idle stealing retries on their worker (#3346) master
authorigor-nanox <igor.k@nanox.vision>
Fri, 16 Oct 2026 22:02:36 +0000 (01:02 +0300)
committerGitHub <noreply@github.com>
Fri, 16 Oct 2026 22:02:36 +0000 (00:02 +0200)
commite0612414a9a74a798f12acb20edea170603e4696
treeed6a5d861d84ce61e85c7200f8c071cf62066900
parentaba7015b6994daf843b73bd8d49fdfdf0ebadadc
fix(pool): keep idle stealing retries on their worker (#3346)

* fix: account task responses to the replying worker node

Resolve the worker node from the response worker id and re-resolve node keys
after promise continuations and stolen-task delays, since keys shift when
workers are removed.

* refactor(pool): reuse UUID and shared regression helpers

* docs: remove regression helper contribution guidance

* test(pool): unify regression deadlines and message waits

* fix(pool): preserve worker info overrides in task statistics

* docs(api): remove idle retry implementation detail

---------

Co-authored-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
12 files changed:
src/pools/abstract-pool.ts
src/pools/worker.ts
src/utility-types.ts
src/worker/abstract-worker.ts
tests/pools/cluster/fixed.test.mjs
tests/pools/task-accounting.test.mjs [new file with mode: 0644]
tests/pools/thread/fixed.test.mjs
tests/pools/worker-exit.test.mjs
tests/pools/worker-node.test.mjs
tests/test-utils.cjs
tests/worker-files/thread/taskAccountingWorker.mjs [new file with mode: 0644]
tests/worker-files/thread/taskStealingRetryWorker.mjs [new file with mode: 0644]