chrome-pool | Headless chrome tabs manage pool | UI Testing library
kandi X-RAY | chrome-pool Summary
kandi X-RAY | chrome-pool Summary
Headless chrome tabs manage pool
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Launch runner .
chrome-pool Key Features
chrome-pool Examples and Code Snippets
Community Discussions
Trending Discussions on chrome-pool
QUESTION
I'm trying to be able to generate 1k reports using and endpoint with Express.js, I pass an array in a JSON, the API goes over it and in a forEach loop, then every object is used to scrap a portal, get the response, and create a PDF file...
This approach pseudo work, but I'm pretty sure that there are some concurrency problems... because, if I pass 2 items in the JSON array the API can create the 2 PDF files without a problem, but if I pass 300 the API creates randomly 50... or 60 or 120.
This is my jsreport config
...ANSWER
Answered 2019-Apr-08 at 21:13I think in your structure it is easy to solve your problem with writeFileSync
function instead of using writeStream. But it does not mean it is the best approach. Because you have to wait for each render and each write file process to start another one. So i would suggest to use Promise.all
that you can run your long processes at the same time. That means you will wait only for longest process.
Quick win - Slow process
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install chrome-pool
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page