Check if workers are actively processing?
traday opened this issue · 2 comments
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?
Hmm. It looks like the closest thing is your answer here.
I am not finding anything in Bunny that provides that.
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.