Module: Resque

Defined in:
lib/resque/unique_by_arity/unique_job.rb,
lib/resque/unique_by_arity.rb,
lib/resque/plugins/unique_by_arity.rb,
lib/resque/unique_by_arity/version.rb,
lib/resque/unique_by_arity/modulizer.rb,
lib/resque/unique_by_arity/validation.rb,
lib/resque/unique_by_arity/configuration.rb,
lib/resque/unique_by_arity/global_configuration.rb

Overview

Usage:

class MyJob

def self.perform(arg1, arg2)
end
include Resque::Plugins::UniqueByArity.new(
  arity_for_uniqueness: 1,
  arity_validation: :warning, # or nil, false, or :error
  unique_at_runtime: true,
  unique_in_queue: true
)

end

NOTE: DO NOT include this module directly.

Use the Resque::Plugins::UniqueByArity approach as above.
This module is ultimately extended into the job class.

Defined Under Namespace

Modules: Plugins, UniqueByArity