Sha256: b1f2b693479962249779a6804f9473c99103b8df3cbca92a317b12cc56cc700f

Contents?: true

Size: 463 Bytes

Versions: 35

Compression:

Stored size: 463 Bytes

Contents

require "redis"
require "net/http"

class ErrorJob
  @queue = :critical

  def self.perform
    if ENV.key?('REDIS_URL')
      redis = Redis.new(:url => ENV['REDIS_URL'])
    elsif ENV.key?('I_REDIS_URL')
      redis = Redis.new(:url => ENV['I_REDIS_URL'])
    else
      redis = Redis.new(:url => 'localhost:6379')
    end

    dt = Time.now
    redis.set('ts', dt)

    raise Exception.new("Silly Rabbit, Trix are for kids.")
    redis.set(:nb_id, 2)
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
instana-1.11.5 test/jobs/resque_error_job.rb
instana-1.11.5-java test/jobs/resque_error_job.rb
instana-1.11.4-java test/jobs/resque_error_job.rb
instana-1.11.4 test/jobs/resque_error_job.rb
instana-1.11.3-java test/jobs/resque_error_job.rb
instana-1.11.3 test/jobs/resque_error_job.rb
instana-1.11.2-java test/jobs/resque_error_job.rb
instana-1.11.2 test/jobs/resque_error_job.rb
instana-1.11.1-java test/jobs/resque_error_job.rb
instana-1.11.1 test/jobs/resque_error_job.rb
instana-1.11.0-java test/jobs/resque_error_job.rb
instana-1.11.0 test/jobs/resque_error_job.rb
instana-1.10.10 test/jobs/resque_error_job.rb
instana-1.10.10-java test/jobs/resque_error_job.rb
instana-1.10.9-java test/jobs/resque_error_job.rb
instana-1.10.9 test/jobs/resque_error_job.rb
instana-1.10.8-java test/jobs/resque_error_job.rb
instana-1.10.8 test/jobs/resque_error_job.rb
instana-1.10.7 test/jobs/resque_error_job.rb
instana-1.10.7-java test/jobs/resque_error_job.rb