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

7 lines
268 B
Ruby
Raw Normal View History

2014-09-02 18:07:02 +05:30
class Admin::BackgroundJobsController < Admin::ApplicationController
def show
2015-04-26 12:48:37 +05:30
ps_output, _ = Gitlab::Popen.popen(%W(ps -U #{Gitlab.config.gitlab.user} -o pid,pcpu,pmem,stat,start,command))
2014-09-02 18:07:02 +05:30
@sidekiq_processes = ps_output.split("\n").grep(/sidekiq/)
end
end