debian-mirror-gitlab/app/controllers/admin/background_jobs_controller.rb

8 lines
334 B
Ruby
Raw Normal View History

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