mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 16:21:18 +08:00
enough with the malloc limit, not needed
This commit is contained in:
@ -91,7 +91,7 @@ class AdminDashboardData
|
||||
]
|
||||
|
||||
add_problem_check :rails_env_check, :ruby_version_check, :host_names_check,
|
||||
:gc_checks, :ram_check, :google_oauth2_config_check,
|
||||
:ram_check, :google_oauth2_config_check,
|
||||
:facebook_config_check, :twitter_config_check,
|
||||
:github_config_check, :s3_config_check, :image_magick_check,
|
||||
:failing_emails_check, :default_logo_check, :contact_email_check,
|
||||
@ -169,10 +169,6 @@ class AdminDashboardData
|
||||
I18n.t("dashboard.host_names_warning") if ['localhost', 'production.localhost'].include?(Discourse.current_hostname)
|
||||
end
|
||||
|
||||
def gc_checks
|
||||
I18n.t("dashboard.gc_warning") if ENV['RUBY_GC_MALLOC_LIMIT'].nil?
|
||||
end
|
||||
|
||||
def sidekiq_check
|
||||
last_job_performed_at = Jobs.last_job_performed_at
|
||||
I18n.t('dashboard.sidekiq_warning') if Jobs.queued > 0 and (last_job_performed_at.nil? or last_job_performed_at < 2.minutes.ago)
|
||||
|
Reference in New Issue
Block a user