mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 11:53:44 +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
|
||||
|
||||
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`
|
||||
report_data =
|
||||
if result.strip.empty?
|
||||
|
|
Loading…
Reference in New Issue
Block a user