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

10 lines
365 B
Ruby
Raw Normal View History

2018-12-05 23:21:45 +05:30
# frozen_string_literal: true
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