Skip to content
Resque plugin that understands individual jobs can belong to something bigger than themselves https://rubygems.org/gems/resque-batched-job
Ruby
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
example
lib
test
LICENSE
README.md
Rakefile
resque-batched-job.gemspec

README.md

Resque Batched Job

A Resque plugin. Requires Resque 1.10.0

TODO

* Define a complete batch

Example

class Job

  extend Resque::Plugins::BatchedJob

  @queue = :example

  def self.before_perform_clean_up(place, name)
    puts "#{name} straightening up desk"
  end

  def self.perform(place, name)
    puts "#{name} leaving the #{place}"
    sleep 1
  end

  def self.after_batch_turn_lights_out(place, name)
    puts "#{name} turing the lights out in the #{place}."
    sleep 1
  end

end
Something went wrong with that request. Please try again.