remove queue_size_check

This commit is contained in:
Neil Lalonde
2015-04-15 15:52:28 -04:00
parent d2ed64751e
commit dcb9d6e16a
2 changed files with 1 additions and 7 deletions

View File

@@ -25,7 +25,7 @@ class AdminDashboardData
ruby_version_check,
host_names_check,
gc_checks,
sidekiq_check || queue_size_check,
sidekiq_check,
ram_check,
old_google_config_check,
both_googles_config_check,
@@ -100,11 +100,6 @@ class AdminDashboardData
I18n.t('dashboard.sidekiq_warning') if Jobs.queued > 0 and (last_job_performed_at.nil? or last_job_performed_at < 2.minutes.ago)
end
def queue_size_check
queue_size = Jobs.queued
I18n.t('dashboard.queue_size_warning', queue_size: queue_size) unless queue_size < 100
end
def ram_check
I18n.t('dashboard.memory_warning') if MemInfo.new.mem_total and MemInfo.new.mem_total < 1_000_000
end