Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
a271570e
Commit
a271570e
authored
Oct 15, 2013
by
Marin Jankovski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show explanation .
parent
4886d8fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
app/views/admin/background_jobs/show.html.haml
app/views/admin/background_jobs/show.html.haml
+6
-1
No files found.
app/views/admin/background_jobs/show.html.haml
View file @
a271570e
...
@@ -5,7 +5,8 @@
...
@@ -5,7 +5,8 @@
%h4
Sidekiq running processes
%h4
Sidekiq running processes
-
sidekiq_processes
=
`ps -eo euser,pid,pcpu,pmem,stat,start,command | grep sidekiq | grep -v grep`
-
sidekiq_processes
=
`ps -eo euser,pid,pcpu,pmem,stat,start,command | grep sidekiq | grep -v grep`
-
if
sidekiq_processes
.
empty?
-
if
sidekiq_processes
.
empty?
%b
There is no running sidekiq process
%b
There are no running sidekiq processes
%b
Please restart GitLab
-
else
-
else
.ui-box
.ui-box
%table
.zebra-striped
%table
.zebra-striped
...
@@ -25,9 +26,13 @@
...
@@ -25,9 +26,13 @@
%th
COMMAND
%th
COMMAND
%th
%th
-
sidekiq_processes
.
split
(
"
\n
"
).
each
do
|
process
|
-
sidekiq_processes
.
split
(
"
\n
"
).
each
do
|
process
|
-
next
unless
process
.
match
(
/(sidekiq \d+\.\d+\.\d+.+$)/
)
-
data
=
process
.
gsub!
(
/\s+/m
,
'|'
).
strip
.
split
(
'|'
)
-
data
=
process
.
gsub!
(
/\s+/m
,
'|'
).
strip
.
split
(
'|'
)
%tr
%tr
-
6
.
times
do
-
6
.
times
do
%td
=
data
.
shift
%td
=
data
.
shift
%td
%td
%td
=
data
.
join
(
" "
)
%td
=
data
.
join
(
" "
)
%b
If '[25 of 25 busy]' is shown, restart GitLab.
%br
%b
If more than one sidekiq process is listed, stop GitLab, kill the remaining sidekiq processes (sudo pkill -u git -f sidekiq) and restart GitLab.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment