Sha256: f54a0f60b5335b0221396cd081886f7e086f05e952fad33a00454e69ec0ee053

Contents?: true

Size: 276 Bytes

Versions: 9

Compression:

Stored size: 276 Bytes

Contents

require "redis"
require "net/http"

class ErrorJob
  @queue = :critical

  def self.perform
    redis = Redis.new(url: ENV['REDIS_URL'])

    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

9 entries across 9 versions & 1 rubygems

Version Path
instana-1.9.7 test/jobs/resque_error_job.rb
instana-1.9.6 test/jobs/resque_error_job.rb
instana-1.9.5 test/jobs/resque_error_job.rb
instana-1.9.4 test/jobs/resque_error_job.rb
instana-1.9.3 test/jobs/resque_error_job.rb
instana-1.9.2 test/jobs/resque_error_job.rb
instana-1.9.1 test/jobs/resque_error_job.rb
instana-1.9.0 test/jobs/resque_error_job.rb
instana-1.9.0.daftrabbit test/jobs/resque_error_job.rb