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

Get current queue size #55

Open
NathanHazout opened this issue Jul 4, 2019 · 1 comment
Open

Get current queue size #55

NathanHazout opened this issue Jul 4, 2019 · 1 comment

Comments

@NathanHazout
Copy link

I am using the in-memory queue, and at some point I reach NodeJs' max heap.

To prevent this, I want to limit my queue to a maximum of X tasks waiting in queue, until it goes down, I don't push anything.

The problem is, I can't find any way to know what the current queue size it.

@leanderlee
Copy link
Member

You can use length in this situation, I believe.

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