Sha256: a41c4260b4db664f6e4779b3dc0eb6625bc06629e2622a79a5f3ff456ffa9373

Contents?: true

Size: 314 Bytes

Versions: 21

Compression:

Stored size: 314 Bytes

Contents

module GoogleSafeBrowsing
  class Rescheduler
    @queue = :google_safe_browsing

    def self.perform
      puts "Running Update"
      delay = APIv2.update
      puts "Scheduling new update in #{delay} seconds"
      Resque.enqueue_in(delay.seconds, Rescheduler)
      puts "Update scheduled"
    end

  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
google_safe_browsing-0.6.3 lib/google_safe_browsing/rescheduler.rb
google_safe_browsing-0.6.2 lib/google_safe_browsing/rescheduler.rb
google_safe_browsing-0.6.1 lib/google_safe_browsing/rescheduler.rb
google_safe_browsing-0.6.0 lib/google_safe_browsing/rescheduler.rb
google_safe_browsing-0.5.1 lib/google_safe_browsing/rescheduler.rb
google_safe_browsing-0.5.0 lib/google_safe_browsing/rescheduler.rb
google_safe_browsing-0.4.2 lib/google_safe_browsing/rescheduler.rb
google_safe_browsing-0.4.1 lib/google_safe_browsing/rescheduler.rb
google_safe_browsing-0.4.0 lib/google_safe_browsing/rescheduler.rb
google_safe_browsing-0.3.9 lib/google_safe_browsing/rescheduler.rb
google_safe_browsing-0.3.8 lib/google_safe_browsing/rescheduler.rb
google_safe_browsing-0.3.7 lib/google_safe_browsing/rescheduler.rb
google_safe_browsing-0.3.6 lib/google_safe_browsing/rescheduler.rb
google_safe_browsing-0.3.5 lib/google_safe_browsing/rescheduler.rb
google_safe_browsing-0.3.4 lib/google_safe_browsing/rescheduler.rb
google_safe_browsing-0.3.3 lib/google_safe_browsing/rescheduler.rb
google_safe_browsing-0.3.2 lib/google_safe_browsing/rescheduler.rb
google_safe_browsing-0.3.1 lib/google_safe_browsing/rescheduler.rb
google_safe_browsing-0.3.0 lib/google_safe_browsing/rescheduler.rb
google_safe_browsing-0.2.0 lib/google_safe_browsing/rescheduler.rb