Fix worker pool bugs: boot timeout, dead code, teardown logging, onWorkerExit on timeout
- #3: BOOTING workers now subject to timeout (prevents hung setup() from deadlocking pool)
- #5: Remove unreachable _rejectActiveRequests in shutdown() (already handled by _handleExit)
- #8: Remove misleading CHILD_MESSAGE_END before forceKill in shutdownNow()/_handleWorkerTimeout
- #9: Call onWorkerExit(null, 'SIGKILL') from _handleWorkerTimeout so timeout kills are observable
- #10: Log teardown() errors in worker-child-common.ts instead of silently swallowing them
- Fix WorkerExitErrorMock to match real error message format
- Add tests: onActivityAbort/setOnActivityAbort, workerName in error messages,
spawn error queue rejection, booting worker timeout, onWorkerExit on timeout
Co-Authored-By:
Claude <noreply@anthropic.com>
Showing
Please
register
or
sign in
to comment