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

Check if workers are actively processing? #450

Closed
traday opened this issue Oct 28, 2020 · 2 comments
Closed

Check if workers are actively processing? #450

traday opened this issue Oct 28, 2020 · 2 comments

Comments

@traday
Copy link

traday commented Oct 28, 2020

We are considering moving to sneakers and advanced-sneakers-activejob from sidekiq. One thing that I get with sidekiq is the ability to see if workers are running on some background task.
Sidekiq::Workers.new.size > 0
We can write our own way of registering and checking, but I was wondering if sneakers had something that I have not noticed or if you would recommend another way to get to the information?

@traday
Copy link
Author

traday commented Oct 28, 2020

Hmm. It looks like the closest thing is your answer here.
I am not finding anything in Bunny that provides that.

@traday
Copy link
Author

traday commented Oct 28, 2020

OK, I have come to the conclusion that barring something catastrophic (like the workers have all crashed or are not running), the fact that there is something in the queue implies some or all tasks are running IF the queue is a must ack queue. The way that advanced-sneakers-activejob is built, it wraps the transactions, yields and then acks, so even if I err out, I am going to get an ack. I am good to go.

@traday traday closed this as completed Oct 28, 2020
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