Skip to content

Instantly share code, notes, and snippets.

anonymous
anonymous / heroku_maintenance.rb
Created June 19, 2012 17:52
Heroku Rolling Restarts
class HerokuMaintenance
def self.rolling_restarts
puts "Processing Rolling Restarts"
processes = time_hash[Time.now.hour]
if processes
puts "restarting: #{processes.inspect}"
processes.each { |process| restart_process(process) if process}
else
puts "No restarts scheduled for hour: [#{Time.now.hour}]"