thomasdondorf / puppeteer-cluster

Puppeteer Pool, run a cluster of instances in parallel
MIT License
3.2k stars 307 forks source link

Suggestion: Allow pool of already instantiated browser workers #524

Open tehandyb opened 1 year ago

tehandyb commented 1 year ago

Would it be possible to have browser workers already available instead of launching the browser when a new browser worker instance is created? This would allow incoming calls that need a browser, to immediately get it, instead of having to wait for the browser to startup. Similar to how the Page based worker already launches the browser in its init() function. I guess the logic might get a bit complicated on keeping the browser instances around, but I think it could be worth it