Sha256: 56dbb4569e65c9cfb14590a6c01bdf9483a983dc71e5446840c55c1df8ba550a

Contents?: true

Size: 418 Bytes

Versions: 23

Compression:

Stored size: 418 Bytes

Contents

# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2018

require "redis"
require "net/http"

class ErrorJob
  @queue = :critical

  def self.perform
    if ENV.key?('REDIS_URL')
      redis = Redis.new(:url => ENV['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.")
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
instana-1.214.0 test/support/apps/resque/jobs/resque_error_job.rb
instana-1.213.3 test/support/apps/resque/jobs/resque_error_job.rb
instana-1.213.2 test/support/apps/resque/jobs/resque_error_job.rb
instana-1.213.1 test/support/apps/resque/jobs/resque_error_job.rb
instana-1.213.0 test/support/apps/resque/jobs/resque_error_job.rb
instana-1.212.0 test/support/apps/resque/jobs/resque_error_job.rb
instana-1.211.0 test/support/apps/resque/jobs/resque_error_job.rb
instana-1.210.1 test/support/apps/resque/jobs/resque_error_job.rb
instana-1.210.0 test/support/apps/resque/jobs/resque_error_job.rb
instana-1.209.8 test/support/apps/resque/jobs/resque_error_job.rb
instana-1.209.7 test/support/apps/resque/jobs/resque_error_job.rb
instana-1.209.6 test/support/apps/resque/jobs/resque_error_job.rb
instana-1.209.5 test/support/apps/resque/jobs/resque_error_job.rb
instana-1.209.4 test/support/apps/resque/jobs/resque_error_job.rb
instana-1.209.3 test/support/apps/resque/jobs/resque_error_job.rb
instana-1.209.2 test/support/apps/resque/jobs/resque_error_job.rb
instana-1.209.1 test/support/apps/resque/jobs/resque_error_job.rb
instana-1.209.0.pre3 test/support/apps/resque/jobs/resque_error_job.rb
instana-1.209.0.pre2 test/support/apps/resque/jobs/resque_error_job.rb
instana-1.209.0.pre1 test/support/apps/resque/jobs/resque_error_job.rb