Sha256: 30b6eda999824198ceb60e5cb9697f3b0501b7b73aae149741bda776a82328d2

Contents?: true

Size: 405 Bytes

Versions: 13

Compression:

Stored size: 405 Bytes

Contents

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

13 entries across 13 versions & 1 rubygems

Version Path
instana-1.193.4 test/support/apps/resque/jobs/resque_fast_job.rb
instana-1.193.3 test/support/apps/resque/jobs/resque_fast_job.rb
instana-1.193.3.pre1 test/support/apps/resque/jobs/resque_fast_job.rb
instana-1.193.2 test/jobs/resque_fast_job.rb
instana-1.192.1 test/jobs/resque_fast_job.rb
instana-1.192.0 test/jobs/resque_fast_job.rb
instana-1.13.0 test/jobs/resque_fast_job.rb
instana-1.12.0 test/jobs/resque_fast_job.rb
instana-1.11.8-java test/jobs/resque_fast_job.rb
instana-1.11.8 test/jobs/resque_fast_job.rb
instana-1.11.7 test/jobs/resque_fast_job.rb
instana-1.11.6 test/jobs/resque_fast_job.rb
instana-1.11.6-java test/jobs/resque_fast_job.rb