Sha256: 860f8ebe6a39e4432070524a4169f2970ee598c6b878c9be46ed4dfa1e14920e

Contents?: true

Size: 479 Bytes

Versions: 36

Compression:

Stored size: 479 Bytes

Contents

module HttpUtilities
  module Jobs
    module Resque
      module Proxies
        class CheckProxyJob
          @queue = :proxies

          def self.perform(proxy_id)
            proxy_object = ::Proxy.where(id: proxy_id).first

            if (proxy_object)
              checker = HttpUtilities::Proxies::ProxyChecker.new
              checker.check_proxy(proxy_object)
              checker.update_proxies
            end
          end
        end
      end
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
http_utilities-1.4.3 lib/http_utilities/jobs/resque/proxies/check_proxy_job.rb
http_utilities-1.4.2 lib/http_utilities/jobs/resque/proxies/check_proxy_job.rb
http_utilities-1.4.1 lib/http_utilities/jobs/resque/proxies/check_proxy_job.rb
http_utilities-1.4.0 lib/http_utilities/jobs/resque/proxies/check_proxy_job.rb
http_utilities-1.3.9 lib/http_utilities/jobs/resque/proxies/check_proxy_job.rb
http_utilities-1.3.8 lib/http_utilities/jobs/resque/proxies/check_proxy_job.rb
http_utilities-1.3.7 lib/http_utilities/jobs/resque/proxies/check_proxy_job.rb
http_utilities-1.3.6 lib/http_utilities/jobs/resque/proxies/check_proxy_job.rb
http_utilities-1.3.5 lib/http_utilities/jobs/resque/proxies/check_proxy_job.rb
http_utilities-1.3.4 lib/http_utilities/jobs/resque/proxies/check_proxy_job.rb
http_utilities-1.3.3 lib/http_utilities/jobs/resque/proxies/check_proxy_job.rb
http_utilities-1.3.2 lib/http_utilities/jobs/resque/proxies/check_proxy_job.rb
http_utilities-1.3.1 lib/http_utilities/jobs/resque/proxies/check_proxy_job.rb
http_utilities-1.3.0 lib/http_utilities/jobs/resque/proxies/check_proxy_job.rb
http_utilities-1.2.7 lib/http_utilities/jobs/resque/proxies/check_proxy_job.rb
http_utilities-1.2.6.5 lib/http_utilities/jobs/resque/proxies/check_proxy_job.rb
http_utilities-1.2.6.4 lib/http_utilities/jobs/resque/proxies/check_proxy_job.rb
http_utilities-1.2.6.3 lib/http_utilities/jobs/resque/proxies/check_proxy_job.rb
http_utilities-1.2.6.2 lib/http_utilities/jobs/resque/proxies/check_proxy_job.rb
http_utilities-1.2.6.1 lib/http_utilities/jobs/resque/proxies/check_proxy_job.rb