Sha256: 51b8799c2811e7f7ca514a3cc52f8f59ea3a3728dcf26a1bdeb3d772a800d654

Contents?: true

Size: 426 Bytes

Versions: 9

Compression:

Stored size: 426 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 => 'redis://localhost:6379')
    end

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

    raise Exception.new("Silly Rabbit, Trix are for kids.")
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
instana-1.217.1 test/support/apps/resque/jobs/resque_error_job.rb
instana-1.217.0 test/support/apps/resque/jobs/resque_error_job.rb
instana-1.216.0 test/support/apps/resque/jobs/resque_error_job.rb
instana-1.215.1 test/support/apps/resque/jobs/resque_error_job.rb
instana-1.215.0 test/support/apps/resque/jobs/resque_error_job.rb
instana-1.214.4 test/support/apps/resque/jobs/resque_error_job.rb
instana-1.214.3 test/support/apps/resque/jobs/resque_error_job.rb
instana-1.214.2 test/support/apps/resque/jobs/resque_error_job.rb
instana-1.214.1 test/support/apps/resque/jobs/resque_error_job.rb