Sha256: ba5f4d5d07d601b551f9a976eae481fd5578f4195d620bb2b8b88aed707fc52c

Contents?: true

Size: 307 Bytes

Versions: 13

Compression:

Stored size: 307 Bytes

Contents

require 'resque'
require 'newrelic_rpm'

redis_port = ENV["NEWRELIC_MULTIVERSE_REDIS_PORT"]
$redis = Redis.new(:port => redis_port)
Resque.redis = $redis

class JobForTesting
  @queue = :resque_test

  def self.perform(key, val, sleep_duration=0)
    sleep sleep_duration
    $redis.set(key, val)
  end
end

Version data entries

13 entries across 13 versions & 3 rubygems

Version Path
wd_newrelic_rpm-3.5.8 test/multiverse/suites/resque/resque_setup.rb
sundawg_newrelic_rpm-3.5.8.2 test/multiverse/suites/resque/resque_setup.rb
sundawg_newrelic_rpm-3.5.8.1 test/multiverse/suites/resque/resque_setup.rb
newrelic_rpm-3.5.8.72 test/multiverse/suites/resque/resque_setup.rb
newrelic_rpm-3.5.8.70 test/multiverse/suites/resque/resque_setup.rb
newrelic_rpm-3.5.8.64.beta test/multiverse/suites/resque/resque_setup.rb
newrelic_rpm-3.5.7.59 test/multiverse/suites/resque/resque_setup.rb
newrelic_rpm-3.5.7.59.beta test/multiverse/suites/resque/resque_setup.rb
newrelic_rpm-3.5.7.58.beta test/multiverse/suites/resque/resque_setup.rb
wd_newrelic_rpm-3.5.6 test/multiverse/suites/resque/resque_setup.rb
newrelic_rpm-3.5.7.57.beta test/multiverse/suites/resque/resque_setup.rb
newrelic_rpm-3.5.6.55 test/multiverse/suites/resque/resque_setup.rb
newrelic_rpm-3.5.6.48.beta test/multiverse/suites/resque/resque_setup.rb