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

pooL.aqcuire never finihsed #4

Open
tsabbay opened this issue Nov 25, 2018 · 0 comments
Open

pooL.aqcuire never finihsed #4

tsabbay opened this issue Nov 25, 2018 · 0 comments

Comments

@tsabbay
Copy link

tsabbay commented Nov 25, 2018

Hi,
First i wanted to say THANKS for a great ,simple to use component.
We are using it a lot and its seems like working fine for few good months UNTIL 2 days ago.
We noticed a strange behavior lately from a very simple code:

CODE

var workerPool = require('worker-threads-pool');
var pool = new workerPool ({max: 5});
pool.acquire(destdir, {
.....
The strange part is the the pool never able to acquire a new resource and our code not callback.
Any chance that you will consider adding :
Timeout for acquiring ? so if after a specific time the pool is not acquiring it will throw an error ?
We've upgraded to v2 and we saw that there is a new maxWaiting but we are afraid that we will end up with the same problem as happened prior v2.

If needed, you can add my as a collaborator and ill help.
The reported issue is not happening all the time and we are not able to reproduce it.
Thanks!

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

1 participant