app/models/manager.rb
# The main method of this class:
The main method of this class.
The main method of this class .
def pause
      count = 0
      while paused?
        EOL.log("Harvesting paused, waiting...") if count % 30 == 0
        sleep(60)
        count += 1
        if count > 240 
          raise EOL::Exceptions::HarvestPauseTimeExceeded.new
        end
      end
      EOL.log("Unpaused. Continuing.")
    end
def pause count = 0 while paused? EOL . log ( "Harvesting paused, waiting..." ) if count % 30 == 0 sleep ( 60 ) count += 1 if count > 240 raise EOL :: Exceptions :: HarvestPauseTimeExceeded . new end end EOL . log ( "Unpaused. Continuing." ) end
The main method of this class:
The main method of this class :
# Only worth logging the pause once every half an hour... # We've waited 4 hours...