Sha256: 7ed5fe1dbe587726e20a735cd151058d46733cbb9b97340cd95759d36b241281

Contents?: true

Size: 599 Bytes

Versions: 5

Compression:

Stored size: 599 Bytes

Contents

# Copyright (c) 2016 SolarWinds, LLC.
# All rights reserved.

class RemoteCallWorkerJob
  include Sidekiq::Worker

  def perform(*args)
    # Make some random Dalli (memcache) calls and top it
    # off with an excon call to the background rack webserver.
    @dc = Dalli::Client.new
    @dc.get(rand(10).to_s)
    uri = URI('http://gameface.in/gamers')
    http = Net::HTTP.new(uri.host, uri.port)
    request = Net::HTTP::Get.new(uri.request_uri)
    http.request(request)
    @dc.get(rand(10).to_s)
    @dc.get(rand(10).to_s)
    @dc.get_multi([:one, :two, :three, :four, :five, :six])
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
appoptics_apm-4.0.3 test/jobs/sidekiq/remote_call_worker_job.rb
appoptics_apm-4.0.2 test/jobs/sidekiq/remote_call_worker_job.rb
appoptics_apm-4.0.1-x86_64-linux test/jobs/sidekiq/remote_call_worker_job.rb
traceview-3.8.4-java test/jobs/sidekiq/remote_call_worker_job.rb
traceview-3.8.4 test/jobs/sidekiq/remote_call_worker_job.rb