Sha256: 8e981b47b9291a637cb8b178e2ac3f19d414e441b7ad6981af4a7f580cd82c1a

Contents?: true

Size: 541 Bytes

Versions: 36

Compression:

Stored size: 541 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

36 entries across 36 versions & 1 rubygems

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