Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sidekiq + Rails: How to see queue of "Busy" jobs?

I have a script that looks for jobs:

Sidekiq::Queue.new(queue_name).any? { |q| q.args[0] == blah_id } ||
Sidekiq::RetrySet.new.any? { |r| r.queue == queue_name && r.args[0] == blah_id } ||
Sidekiq::ScheduledSet.new.any? { |s| s.queue == queue_name && s.args[0] == blah_id }

However, this doesn't look inside of Busy: enter image description here

How would I look inside of Busy?

like image 949
bigpotato Avatar asked May 29 '15 22:05

bigpotato


1 Answers

That's the Sidekiq::Workers API:

https://github.com/mperham/sidekiq/blob/90190e0dc40744cb07a12291e5ecc20b069981b6/lib/sidekiq/api.rb#L931

like image 60
Mike Perham Avatar answered Sep 24 '22 20:09

Mike Perham