Sha256: 2c2f878b7b943bf03a03ed770a1813adb5dd8351a0972ef49b8ab25f119b3885

Contents?: true

Size: 471 Bytes

Versions: 25

Compression:

Stored size: 471 Bytes

Contents

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

require "redis"
require "net/http"

class FastJob
  @queue = :critical

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

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
instana-1.203.0 test/support/apps/resque/jobs/resque_fast_job.rb
instana-1.202.0 test/support/apps/resque/jobs/resque_fast_job.rb
instana-1.201.0 test/support/apps/resque/jobs/resque_fast_job.rb
instana-1.201.0.pre1 test/support/apps/resque/jobs/resque_fast_job.rb
instana-1.200.0 test/support/apps/resque/jobs/resque_fast_job.rb
instana-1.200.0.pre1 test/support/apps/resque/jobs/resque_fast_job.rb
instana-1.199.6 test/support/apps/resque/jobs/resque_fast_job.rb
instana-1.199.5 test/support/apps/resque/jobs/resque_fast_job.rb
instana-1.199.4 test/support/apps/resque/jobs/resque_fast_job.rb
instana-1.199.3 test/support/apps/resque/jobs/resque_fast_job.rb
instana-1.199.2 test/support/apps/resque/jobs/resque_fast_job.rb
instana-1.199.1 test/support/apps/resque/jobs/resque_fast_job.rb
instana-1.199.0 test/support/apps/resque/jobs/resque_fast_job.rb
instana-1.198.0 test/support/apps/resque/jobs/resque_fast_job.rb
instana-1.198.0.pre1 test/support/apps/resque/jobs/resque_fast_job.rb
instana-1.197.0 test/support/apps/resque/jobs/resque_fast_job.rb
instana-1.197.0.pre2 test/support/apps/resque/jobs/resque_fast_job.rb
instana-1.197.0.pre1 test/support/apps/resque/jobs/resque_fast_job.rb
instana-1.195.4 test/support/apps/resque/jobs/resque_fast_job.rb
instana-1.195.3 test/support/apps/resque/jobs/resque_fast_job.rb