lage/packages/worker-threads-pool
Ken Chau 278977d362 applying package updates 2024-10-09 17:20:33 +00:00
..
src fixing up the lage integrate with buildxl to utilize lage-server (#794) 2024-10-09 10:17:02 -07:00
tests
CHANGELOG.json applying package updates 2024-10-09 17:20:33 +00:00
CHANGELOG.md applying package updates 2024-10-09 17:20:33 +00:00
README.md
jest.config.js
package.json applying package updates 2024-10-09 17:20:33 +00:00
tsconfig.json

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