Is there an easy way to search through all of sidekiq (queues, retries, schedules, etc) for a specific job?
Currently I'm doing this:
if !Sidekiq::Queue.new("feeds").find {|j| j.args[0] == feed.id && j.args[1] == true }
if !Sidekiq::RetrySet.new.find {|j| j.queue == 'feeds' && j.args[0] == feed.id && j.args[1] == true }
if !Sidekiq::ScheduledSet.new.find {|j| j.queue == 'feeds' && j.args[0] == feed.id && j.args[1] == true }
feed.sync
end
end
end
But given how large queues can get, there's a chance the job could move between sets during the iteration and get missed.