Sha256: 1ea8f59eb0cbd28ebfdc6bdb9df11e72ba294a366df4663dff969d73cfb8cd4e

Contents?: true

Size: 336 Bytes

Versions: 1

Compression:

Stored size: 336 Bytes

Contents

# frozen_string_literal: true
module Aranha
  class Processor
    def initialize
      ::Aranha::Address.clear_expired
      ::Aranha::Address.add_start_points
      loop do
        a = ::Aranha::Address.unprocessed.first
        break unless a
        Rails.logger.info("Processing #{a}")
        a.process
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
aranha-0.0.1 lib/aranha/processor.rb