mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
disable memory check till we confirm all is good
This commit is contained in:
parent
43eb030402
commit
251ebb0d65
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue