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