Sha256: 7a29707b2d0b21b51e6d3cdf85d9b94803fd802931144546ff6c704f8ced991f

Contents?: true

Size: 602 Bytes

Versions: 26

Compression:

Stored size: 602 Bytes

Contents

# Copyright (c) 2015 AppNeta, Inc.
# All rights reserved.

class ResqueRemoteCallWorkerJob
  @queue = :critical

  def self.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

26 entries across 26 versions & 1 rubygems

Version Path
traceview-3.8.3-java test/jobs/resque/remote_call_worker_job.rb
traceview-3.8.3 test/jobs/resque/remote_call_worker_job.rb
traceview-3.8.2-java test/jobs/resque/remote_call_worker_job.rb
traceview-3.8.2 test/jobs/resque/remote_call_worker_job.rb
traceview-3.8.1-java test/jobs/resque/remote_call_worker_job.rb
traceview-3.8.1 test/jobs/resque/remote_call_worker_job.rb
traceview-3.8.0-java test/jobs/resque/remote_call_worker_job.rb
traceview-3.8.0 test/jobs/resque/remote_call_worker_job.rb
traceview-3.7.1-java test/jobs/resque/remote_call_worker_job.rb
traceview-3.7.1 test/jobs/resque/remote_call_worker_job.rb
traceview-3.7.0-java test/jobs/resque/remote_call_worker_job.rb
traceview-3.7.0 test/jobs/resque/remote_call_worker_job.rb
traceview-3.6.0-java test/jobs/resque/remote_call_worker_job.rb
traceview-3.6.0 test/jobs/resque/remote_call_worker_job.rb
traceview-3.5.1-java test/jobs/resque/remote_call_worker_job.rb
traceview-3.5.1 test/jobs/resque/remote_call_worker_job.rb
traceview-3.5.0-java test/jobs/resque/remote_call_worker_job.rb
traceview-3.5.0 test/jobs/resque/remote_call_worker_job.rb
traceview-3.4.2-java test/jobs/resque/remote_call_worker_job.rb
traceview-3.4.2 test/jobs/resque/remote_call_worker_job.rb