background_jobs_controller.rb 269 Bytes
Newer Older
1 2
class Admin::BackgroundJobsController < Admin::ApplicationController
  def show
3 4
    ps_output, _ = Gitlab::Popen.popen(%W(ps -U #{Settings.gitlab.user} -o euser,pid,pcpu,pmem,stat,start,command))
    @sidekiq_processes = ps_output.split("\n").grep(/sidekiq/)
5 6
  end
end