Module: Resque

Defined in:
lib/resque/plugins/filter/job_filter.rb,
lib/resque/plugins/filter/version.rb

Overview

To configure resque filter, add something like the following to an initializer (defaults shown):

Resque::Plugins::Filter::JobFilter.configure do |config|
  # The queue strategy to use when filtering job:
  #   :simple - pops, checks filter, pushes if not runnable
  #   :optimistic - peeks, checks filter, pops if runnable (not distributed client safe)
  config.strategy = :simple
end

Defined Under Namespace

Modules: Plugins