# This is just a proof of concept to make sure that
# resque/resque-status/Redis are configured correctly.
# Will be removed in a subsequent PR, but for now is
# being used to test changes to our resque config.

class SleepingJob < ResqueJobs::Base
  def perform
    total = (options['length'] || 30).to_i
    total.times do |i|
      num = i + 1
      at(num, total, "At #{num} of #{total}")
      puts "Sleeping..."
      sleep(1)
    end
  end
end
