65cb88f3ba
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
6 lines
263 B
Ruby
6 lines
263 B
Ruby
class Admin::BackgroundJobsController < Admin::ApplicationController
|
|
def show
|
|
ps_output, _ = Gitlab::Popen.popen(%W(ps -U #{Settings.gitlab.user} -o pid,pcpu,pmem,stat,start,command))
|
|
@sidekiq_processes = ps_output.split("\n").grep(/sidekiq/)
|
|
end
|
|
end
|