lage/packages/worker-threads-pool
Ken Chau dfb1bc1848 applying package updates 2022-11-01 22:48:33 +00:00
..
src Get rid of third party abort-controller package (#473) 2022-11-01 15:42:18 -07:00
tests Get rid of third party abort-controller package (#473) 2022-11-01 15:42:18 -07:00
CHANGELOG.json applying package updates 2022-11-01 22:48:33 +00:00
CHANGELOG.md applying package updates 2022-11-01 22:48:33 +00:00
README.md [lage v2] Worker Runner (#336) 2022-09-04 15:55:42 -07:00
jest.config.js [lage v2] Worker Runner (#336) 2022-09-04 15:55:42 -07:00
package.json applying package updates 2022-11-01 22:48:33 +00:00
tsconfig.json cleaning up the tsconfig files (#470) 2022-11-01 13:38:56 -07:00

README.md

@lage-run/worker-threads-pool

This is an worker_threads based threadpool implementation. We had to implement one of these because lage needs access to the stdin/stdout of the workers themselves for the purpose of logging and preserving them as cached outputs. This way, the workers can be long lived, but the their logs will be associated with the correct target.

It is completely based on the Node.js documentation for async_hook: https://nodejs.org/api/async_context.html#using-asyncresource-for-a-worker-thread-pool