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