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. |
Beta Was this translation helpful? Give feedback.
Answered by
GiovaniGuizzo
Oct 8, 2025
Replies: 1 comment 2 replies
-
|
Hey @blikblum. The main engine runs in a child process, and then it spawns worker threads using Piscina. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
blikblum
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.