Method: Sidekiq::JobSet#find_job
- Defined in:
- lib/sidekiq/api.rb
#find_job(jid) ⇒ Object
Find the job with the given JID within this sorted set.
This is a slow, inefficient operation. Do not use under normal conditions. Sidekiq Pro contains a faster version.
554 555 556 |
# File 'lib/sidekiq/api.rb', line 554 def find_job(jid) self.detect { |j| j.jid == jid } end |