summaryrefslogtreecommitdiff
path: root/app/views/admin/background_jobs/show.html.haml
blob: f2ee1482662ea9b5a7061509de776a7b056bed55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
- page_title "后台作业"
%h3.page-title 后台作业
%p.light GitLab 使用 #{link_to "sidekiq", "http://sidekiq.org/"} 库同步作业处理

%hr

.panel.panel-default
  .panel-heading Sidekiq 运行进程
  .panel-body
    - if @sidekiq_processes.empty?
      %h4.cred
        %i.fa.fa-exclamation-triangle
        没有运行的 sidekiq 进程,请重新启动 GitLab
    - else
      .table-holder
        %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= gitlab_config.user
                - 5.times do
                  %td= data.shift
                %td= data.join(' ')

      .clearfix
        %p
          %i.fa.fa-exclamation-circle
          如果显示 '[25 of 25 busy]' 请使用 'sudo service gitlab reload' 重新启动 GitLab。
        %p
          %i.fa.fa-exclamation-circle
          如果列出超过一个 sidekiq 进程,请停止 GitLab,杀死剩余的 sidekiq 进程 (sudo pkill -u #{Settings.gitlab.user} -f sidekiq),然后重新启动 GitLab。



.panel.panel-default
  %iframe{src: sidekiq_path, width: '100%', height: 970, style: "border: none"}