Codebase question regarding isolate workers
rluvaton opened this issue · comments
Great repo!
I noticed that if isolateWorkers
is true
you reuse the same workers (recycle
) but wouldn't that lead to stuff being kept in the previous run of the worker?
When isolateWorkers
is true
the workers are terminated after a task has been run.
Lines 1015 to 1024 in c444320
Lines 917 to 918 in c444320
Lines 840 to 846 in c444320
Lines 481 to 497 in c444320
When isolation is disabled, then it indeed leads to a situation where worker may have side effects caused by previous run.
Thank you, I thought recycle meaning reuse