<commit_before>%h3.page-title Background Jobs
%p.light GitLab uses #{link_to "sidekiq", "http://sidekiq.org/"} library for async job processing

%hr

.ui-box
  .title Sidekiq running processes
  .body
    - if @sidekiq_processes.empty?
      %h4.cred
        %i.icon-warning-sign
        There are no running sidekiq processes. Please restart GitLab
    - else
      %table.table
        %thead
          %th USER
          %th
          %th PID
          %th
          %th CPU
          %th
          %th MEM
          %th
          %th STATE
          %th
          %th START
          %th
          %th COMMAND
          %th
          - @sidekiq_processes.split("\n").each do |process|
            - next unless process.match(/(sidekiq \d+\.\d+\.\d+.+$)/)
            - data = process.gsub!(/\s+/m, '|').strip.split('|')
            %tr
              - 6.times do
                %td= data.shift
                %td
              %td= data.join(" ")

      .clearfix
        %p
          %i.icon-exclamation-sign
          If '[25 of 25 busy]' is shown, restart GitLab with 'sudo service gitlab reload'.
        %p
          %i.icon-exclamation-sign
          If more than one sidekiq process is listed, stop GitLab, kill the remaining sidekiq processes (sudo pkill -u #{Settings.gitlab.user} -f sidekiq) and restart GitLab.
<commit_msg>Fix BackgroundJobs page<commit_after>%h3.page-title Background Jobs
%p.light GitLab uses #{link_to "sidekiq", "http://sidekiq.org/"} library for async job processing

%hr

.ui-box
  .title Sidekiq running processes
  .body
    - if @sidekiq_processes.empty?
      %h4.cred
        %i.icon-warning-sign
        There are no running sidekiq processes. Please restart GitLab
    - else
      %table.table
        %thead
          %th USER
          %th PID
          %th CPU
          %th MEM
          %th STATE
          %th START
          %th COMMAND
        %tbody
          - @sidekiq_processes.each do |process|
            - next unless process.match(/(sidekiq \d+\.\d+\.\d+.+$)/)
            - data = process.strip.split(' ')
            %tr
              %td= Settings.gitlab.user
              - 5.times do
                %td= data.shift
              %td= data.join(' ')

      .clearfix
        %p
          %i.icon-exclamation-sign
          If '[25 of 25 busy]' is shown, restart GitLab with 'sudo service gitlab reload'.
        %p
          %i.icon-exclamation-sign
          If more than one sidekiq process is listed, stop GitLab, kill the remaining sidekiq processes (sudo pkill -u #{Settings.gitlab.user} -f sidekiq) and restart GitLab.

{'fraction_non_alphanumeric': 0.10939907550077041, 'fraction_numerical': 0.00539291217257319, 'mean_word_length': 1.5410958904109588, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2358871', 'n_tokens_mistral': 838, 'n_tokens_neox': 785, 'n_words': 234}