From dcb9d6e16a5f2a1845438d974334ed635f28ecd9 Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Wed, 15 Apr 2015 15:52:28 -0400 Subject: [PATCH] remove queue_size_check --- app/models/admin_dashboard_data.rb | 7 +------ config/locales/server.en.yml | 1 - 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/app/models/admin_dashboard_data.rb b/app/models/admin_dashboard_data.rb index 202bd3c27ef..90c573581be 100644 --- a/app/models/admin_dashboard_data.rb +++ b/app/models/admin_dashboard_data.rb @@ -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 diff --git a/config/locales/server.en.yml b/config/locales/server.en.yml index 5e36a93170e..8f1a0543511 100644 --- a/config/locales/server.en.yml +++ b/config/locales/server.en.yml @@ -677,7 +677,6 @@ en: host_names_warning: "Your config/database.yml file is using the default localhost hostname. Update it to use your site's hostname." gc_warning: 'Your server is using default ruby garbage collection parameters, which will not give you the best performance. Read this topic on performance tuning: Tuning Ruby and Rails for Discourse.' sidekiq_warning: 'Sidekiq is not running. Many tasks, like sending emails, are executed asynchronously by sidekiq. Please ensure at least one sidekiq process is running. Learn about Sidekiq here.' - queue_size_warning: 'The number of queued jobs is %{queue_size}, which is high. This could indicate a problem with the Sidekiq process(es), or you may need to add more Sidekiq workers.' memory_warning: 'Your server is running with less than 1 GB of total memory. At least 1 GB of memory is recommended.' enable_google_logins_warning: "WARNING! Support is ending for your current method of Google authentication on April 20, 2015! Please switch to the new method now!" both_googles_warning: "You have both enable_google_logins and enable_google_oauth2_logins checked in the site settings. Disable enable_google_logins."