Makes sure that for special jobs, there can be only one job with the same workload in one queue. Example: class CacheSweeper include Resque::Plugins::UniqueJob @queue = :cache_sweeps def self.perform(article_id) # Cache Me If You Can... end end
Jannis Hermanns, Ryan Schlesinger
gem "ryansch-resque-loner", "~> 1.0.1.2"