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