mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 10:58:31 -05:00
Don't run perf report in multisite
This commit is contained in:
parent
4b449241fb
commit
e32cecf60f
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue