73322a0e55
Enables frozen string for the following: * app/controllers/*.rb * app/controllers/admin/**/*.rb * app/controllers/boards/**/*.rb * app/controllers/ci/**/*.rb * app/controllers/concerns/**/*.rb Partially addresses #47424.
9 lines
365 B
Ruby
9 lines
365 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Admin::BackgroundJobsController < Admin::ApplicationController
|
|
def show
|
|
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]
|
|
end
|
|
end
|