Class: Admin::BackgroundJobsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/admin/background_jobs_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject


2
3
4
5
# File 'app/controllers/admin/background_jobs_controller.rb', line 2

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/)
end