mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 18:28:34 +08:00
Don't run perf report in multisite
This commit is contained in:
parent
4b449241fb
commit
e32cecf60f
|
@ -4,7 +4,8 @@ module Jobs
|
||||||
per_host
|
per_host
|
||||||
|
|
||||||
def execute(args)
|
def execute(args)
|
||||||
if SiteSetting.daily_performance_report
|
if SiteSetting.daily_performance_report &&
|
||||||
|
RailsMultisite::ConnectionManagement.current_db == "default"
|
||||||
result = `ruby #{Rails.root}/script/nginx_analyze.rb --limit 1440`
|
result = `ruby #{Rails.root}/script/nginx_analyze.rb --limit 1440`
|
||||||
report_data =
|
report_data =
|
||||||
if result.strip.empty?
|
if result.strip.empty?
|
||||||
|
|
Loading…
Reference in New Issue
Block a user