disable memory check till we confirm all is good

This commit is contained in:
Sam 2015-03-27 14:51:22 +11:00
parent 43eb030402
commit 251ebb0d65

View file

@ -99,7 +99,7 @@ before_fork do |server, worker|
if @sidekiq_next_heartbeat_check < Time.new.to_i if @sidekiq_next_heartbeat_check < Time.new.to_i
last_heartbeat = Jobs::RunHeartbeat.last_heartbeat last_heartbeat = Jobs::RunHeartbeat.last_heartbeat
if out_of_memory? if false && out_of_memory?
Rails.logger.warn("Sidekiq is consuming too much memory (using: %0.2fM), restarting" % (max_rss.to_f / 1.megabyte)) Rails.logger.warn("Sidekiq is consuming too much memory (using: %0.2fM), restarting" % (max_rss.to_f / 1.megabyte))
Demon::Sidekiq.restart Demon::Sidekiq.restart
end end