Sha256: 6a6b684501b65a70f9d0636059e0afe460005efaf99bbe1f2f8de870b63f6661

Contents?: true

Size: 321 Bytes

Versions: 18

Compression:

Stored size: 321 Bytes

Contents

require 'resque'

module Demo
  module Job
    @queue = :default

    def self.perform(params)
      sleep 1
      puts "Processed a job!"
    end
  end
  
  module FailingJob
    @queue = :failing

    def self.perform(params)
      sleep 1
      raise 'not processable!'
      puts "Processed a job!"
    end
  end
end

Version data entries

18 entries across 18 versions & 5 rubygems

Version Path
opengotham_resque-1.8.2 examples/demo/job.rb
resque-mongo-1.8.1 examples/demo/job.rb
resque-1.8.0 examples/demo/job.rb
resque-1.7.1 examples/demo/job.rb
resque-1.7.0 examples/demo/job.rb
resque-1.6.1 examples/demo/job.rb
resque-1.6.0 examples/demo/job.rb
resque-1.5.2 examples/demo/job.rb
resque-1.5.1 examples/demo/job.rb
scotttam-resque-0.0.5 examples/demo/job.rb
scotttam-resque-0.0.4 examples/demo/job.rb
scotttam-resque-0.0.3 examples/demo/job.rb
scotttam-resque-0.0.2 examples/demo/job.rb
scotttam-resque-0.0.1 examples/demo/job.rb
grockit-resque-1.5.0 examples/demo/job.rb
resque-1.5.0 examples/demo/job.rb
resque-mongo-1.4.0 examples/demo/job.rb
resque-1.4.0 examples/demo/job.rb