我有一个寻找工作的脚本:
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 }
然而,这并不是Busy
的内部:
我如何看待Busy?
答案 0 :(得分:3)
这是Sidekiq::Workers
API:
https://github.com/mperham/sidekiq/blob/master/lib/sidekiq/api.rb#L764