Module: Resque::Plugins::UniqueAtRuntime
- Defined in:
- lib/resque/plugins/unique_at_runtime.rb
Overview
If you want your job to support uniqueness at runtime, simply include
this module into your job class.
class RunAlone
@queue = :run_alone
include Resque::Plugins::UniqueAtRuntime
def self.perform(arg1, arg2)
alone_stuff
end
end
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
18 19 20 |
# File 'lib/resque/plugins/unique_at_runtime.rb', line 18 def self.included(base) base.extend ClassMethods end |