require 'resque'

module JamRuby

  # this job exists as a way to manually test a bunch of jobs firing at once.  It's not a real job.
  class StressJob
    extend JamRuby::ResqueStats

    @queue = :stress_job

    @@log = Logging.logger[StressJob]


    def self.perform

      puts "STARTING BIA"
      @@log.debug("STARTING")
      1.times do
        user = User.first.id
        diagnostic = Diagnostic.first.user_id
        count = Diagnostic.all.count
      end
      @@log.debug("ENDING")
      puts "ENDING BIA"

    end
  end

end


