A job is run in a worker thread or as a child process ? It reuses the thread / process in subsequent runs? #114
|
In readme and in this comment #88 (comment) points to worker thread but could not find importing 'worker_threads' module in codebase I am asking because i use playwright that is know to have memory leaks in long runs and would be good to control if thread / process is reused or not. |
Answered by
GiovaniGuizzo
Oct 8, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @blikblum.
The main engine runs in a child process, and then it spawns worker threads using Piscina.
The threads are reused, but they have an idle timeout and are killed if idle for too long.