mperham/sidekiq — pull request #859 by jharbert (2013-04-17 01:04:01+00:00)
Title: Adding functionality to find a job by job id and delete a job by job id from a SortedSet

Functionality to find and delete Sidekiq jobs by the job id. @mperham, I think this is more in line with what you were thinking.

Example usage:

**Finding and Deleting Job by ID**

Sidekiq::SortedSet.new('schedule').find_job_by_id('2eef6b752dab8a4c89a7aa19')
=> #

Sidekiq::ScheduledSet.new.delete_job_by_id('719a82379213ccab7551bc7e')
=> true

Sidekiq::ScheduledSet.new.find_job_by_id('719a82379213ccab7551bc7e')
=> nil

Sidekiq::ScheduledSet.new.delete_job_by_id('719a82379213ccab7551bc7e')
=> nil