Sha256: 3e86f14828a97dac98739dc7d756ef1465ef479eb9a1f5644fc9abb8f6996d89

Contents?: true

Size: 441 Bytes

Versions: 32

Compression:

Stored size: 441 Bytes

Contents

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

require "redis"
require "net/http"

class FastJob
  @queue = :critical

  def self.perform(*args)
    raise 'Invalid Args' unless args.empty?

    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)
    redis.set(:nb_id, 2)
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
instana-1.217.1 test/support/apps/resque/jobs/resque_fast_job.rb
instana-1.217.0 test/support/apps/resque/jobs/resque_fast_job.rb
instana-1.216.0 test/support/apps/resque/jobs/resque_fast_job.rb
instana-1.215.1 test/support/apps/resque/jobs/resque_fast_job.rb
instana-1.215.0 test/support/apps/resque/jobs/resque_fast_job.rb
instana-1.214.4 test/support/apps/resque/jobs/resque_fast_job.rb
instana-1.214.3 test/support/apps/resque/jobs/resque_fast_job.rb
instana-1.214.2 test/support/apps/resque/jobs/resque_fast_job.rb
instana-1.214.1 test/support/apps/resque/jobs/resque_fast_job.rb
instana-1.214.0 test/support/apps/resque/jobs/resque_fast_job.rb
instana-1.213.3 test/support/apps/resque/jobs/resque_fast_job.rb
instana-1.213.2 test/support/apps/resque/jobs/resque_fast_job.rb
instana-1.213.1 test/support/apps/resque/jobs/resque_fast_job.rb
instana-1.213.0 test/support/apps/resque/jobs/resque_fast_job.rb
instana-1.212.0 test/support/apps/resque/jobs/resque_fast_job.rb
instana-1.211.0 test/support/apps/resque/jobs/resque_fast_job.rb
instana-1.210.1 test/support/apps/resque/jobs/resque_fast_job.rb
instana-1.210.0 test/support/apps/resque/jobs/resque_fast_job.rb
instana-1.209.8 test/support/apps/resque/jobs/resque_fast_job.rb
instana-1.209.7 test/support/apps/resque/jobs/resque_fast_job.rb