2013-05-30 02:46:28 -04:00
|
|
|
class Admin::BackgroundJobsController < Admin::ApplicationController
|
|
|
|
def show
|
2017-03-26 02:58:49 -04:00
|
|
|
ps_output, _ = Gitlab::Popen.popen(%W(ps ww -U #{Gitlab.config.gitlab.user} -o pid,pcpu,pmem,stat,start,command))
|
2017-03-28 17:29:49 -04:00
|
|
|
@sidekiq_processes = ps_output.split("\n").grep(/sidekiq \d+\.\d+\.\d+/)
|
2017-02-19 03:15:30 -05:00
|
|
|
@concurrency = Sidekiq.options[:concurrency]
|
2013-05-30 02:46:28 -04:00
|
|
|
end
|
|
|
|
end
|