diff options
author | Rémy Coutable <remy@rymai.me> | 2017-02-20 11:22:13 +0000 |
---|---|---|
committer | Felipe Artur <felipefac@gmail.com> | 2017-02-20 10:55:37 -0300 |
commit | 05ad6c3228d7ac676c069aaeedcf53ded39ad22e (patch) | |
tree | 424d8eafa3500a2a98d7f8e18ca3b09d0944f0ed /app | |
parent | b0846741f7f0edd4b8f4f0ae15af1a030e7b0025 (diff) | |
download | gitlab-ce-05ad6c3228d7ac676c069aaeedcf53ded39ad22e.tar.gz |
Merge branch 'fix_sidekiq_concurrency_warning_message_in_admin_background_job_page' into 'master'
fix incorrect sidekiq concurrency count in admin background page
Closes #19862
See merge request !9359
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/admin/background_jobs_controller.rb | 1 | ||||
-rw-r--r-- | app/views/admin/background_jobs/show.html.haml | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/admin/background_jobs_controller.rb b/app/controllers/admin/background_jobs_controller.rb index 338496013a0..c09095b9849 100644 --- a/app/controllers/admin/background_jobs_controller.rb +++ b/app/controllers/admin/background_jobs_controller.rb @@ -2,5 +2,6 @@ class Admin::BackgroundJobsController < Admin::ApplicationController def show ps_output, _ = Gitlab::Popen.popen(%W(ps -U #{Gitlab.config.gitlab.user} -o pid,pcpu,pmem,stat,start,command)) @sidekiq_processes = ps_output.split("\n").grep(/sidekiq/) + @concurrency = Sidekiq.options[:concurrency] end end diff --git a/app/views/admin/background_jobs/show.html.haml b/app/views/admin/background_jobs/show.html.haml index 4f982a6e369..ac36bb5bb17 100644 --- a/app/views/admin/background_jobs/show.html.haml +++ b/app/views/admin/background_jobs/show.html.haml @@ -35,7 +35,7 @@ .clearfix %p %i.fa.fa-exclamation-circle - If '[25 of 25 busy]' is shown, restart GitLab with 'sudo service gitlab reload'. + If '[#{@concurrency} of #{@concurrency} busy]' is shown, restart GitLab with 'sudo service gitlab reload'. %p %i.fa.fa-exclamation-circle If more than one sidekiq process is listed, stop GitLab, kill the remaining sidekiq processes (sudo pkill -u #{gitlab_config.user} -f sidekiq) and restart GitLab. |