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
Required Ruby Version
None
Authors
Jannis Hermanns
Versions
- 1.2.1 August 13, 2012 (23.5 KB)