2014-09-02 18:07:02 +05:30
|
|
|
class Admin::BackgroundJobsController < Admin::ApplicationController
|
|
|
|
def show
|
2017-08-17 22:00:37 +05:30
|
|
|
ps_output, _ = Gitlab::Popen.popen(%W(ps ww -U #{Gitlab.config.gitlab.user} -o pid,pcpu,pmem,stat,start,command))
|
|
|
|
@sidekiq_processes = ps_output.split("\n").grep(/sidekiq \d+\.\d+\.\d+/)
|
|
|
|
@concurrency = Sidekiq.options[:concurrency]
|
2014-09-02 18:07:02 +05:30
|
|
|
end
|
|
|
|
end
|