Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Too many magick processes #10

Open
MykhailoMatiiasevychKlarna opened this issue May 6, 2024 · 1 comment
Open

Too many magick processes #10

MykhailoMatiiasevychKlarna opened this issue May 6, 2024 · 1 comment

Comments

@MykhailoMatiiasevychKlarna

Hi

Tool works great for my use-case. Thanks!

Got a problem though.
For big PDF documents this code

const promises = Array.from(Array.isArray(page) ? page : { length: pdfcount }, (_, index) => imagemagickconverter(pdf, Array.isArray(page) ? _ : index, progress ? bar : null));
return Promise.all(promises);

is pretty much killing my system by hundreds of magick processes.

Would be nice to use something like p-limit to make it possible to limit number of processes.

@Ilyes-El-Majouti
Copy link
Owner

Ilyes-El-Majouti commented May 6, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants