Sha256: 9960eb1bc1b12a53b2aa5e23e7944ad55ec5c4f43b7786ee7fd861dbf69bba5f

Contents?: true

Size: 535 Bytes

Versions: 6

Compression:

Stored size: 535 Bytes

Contents

module HttpUtilities
  module Jobs
    module Sidekiq
      module Proxies
        class CheckProxyJob
          include ::Sidekiq::Worker
          sidekiq_options :queue    =>  :proxies

          def 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

6 entries across 6 versions & 1 rubygems

Version Path
http_utilities-1.0.7.1 lib/http_utilities/jobs/sidekiq/proxies/check_proxy_job.rb
http_utilities-1.0.7 lib/http_utilities/jobs/sidekiq/proxies/check_proxy_job.rb
http_utilities-1.0.6 lib/http_utilities/jobs/sidekiq/proxies/check_proxy_job.rb
http_utilities-1.0.5 lib/http_utilities/jobs/sidekiq/proxies/check_proxy_job.rb
http_utilities-1.0.2 lib/http_utilities/jobs/sidekiq/proxies/check_proxy_job.rb
http_utilities-1.0.1 lib/http_utilities/jobs/sidekiq/proxies/check_proxy_job.rb