Show only processes owned by the GitLab user on the Admin-Sidekiq page

See the Pull-Request #5191
parent 253850dd
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
.ui-box .ui-box
%iframe{src: sidekiq_path, width: '100%', height: 900, style: "border: none"} %iframe{src: sidekiq_path, width: '100%', height: 900, style: "border: none"}
%h4 Sidekiq running processes %h4 Sidekiq running processes
- sidekiq_processes = `ps -eo euser,pid,pcpu,pmem,stat,start,command | grep sidekiq | grep -v grep` - sidekiq_processes = `ps -U #{Settings.gitlab.user} -o euser,pid,pcpu,pmem,stat,start,command | grep sidekiq | grep -v grep`
- if sidekiq_processes.empty? - if sidekiq_processes.empty?
%b There are no running sidekiq processes %b There are no running sidekiq processes
%b Please restart GitLab %b Please restart GitLab
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment