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