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

Question: How can I figure out the number of processor watching a queue? #1665

Closed
sexygeoff opened this issue Mar 2, 2020 · 3 comments
Closed

Comments

@sexygeoff
Copy link

Hi, how can I figure out the number of processor watching a queue?

@gabegorelick
Copy link
Contributor

If you look at the implementation of Queue.prototype.process, you can see it calls setHandler. This tracks processors in a handlers object. So Object.values(queue.handlers).length should give you the number of processors for queue.

@stale
Copy link

stale bot commented Jul 12, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jul 12, 2021
@manast manast closed this as completed in 57d8679 Jul 16, 2021
@manast
Copy link
Member

manast commented Jul 16, 2021

🎉 This issue has been resolved in version 3.26.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

No branches or pull requests

3 participants