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
4886d8fd
Commit
4886d8fd
authored
Oct 15, 2013
by
Marin Jankovski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show sidekiq running processes in the background_jobs page.
parent
db7d1549
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
app/views/admin/background_jobs/show.html.haml
app/views/admin/background_jobs/show.html.haml
+29
-0
No files found.
app/views/admin/background_jobs/show.html.haml
View file @
4886d8fd
...
@@ -2,3 +2,32 @@
...
@@ -2,3 +2,32 @@
%br
%br
.ui-box
.ui-box
%iframe
{
src:
sidekiq_path
,
width:
'100%'
,
height:
900
,
style:
"border: none"
}
%iframe
{
src:
sidekiq_path
,
width:
'100%'
,
height:
900
,
style:
"border: none"
}
%h4
Sidekiq running processes
-
sidekiq_processes
=
`ps -eo euser,pid,pcpu,pmem,stat,start,command | grep sidekiq | grep -v grep`
-
if
sidekiq_processes
.
empty?
%b
There is no running sidekiq process
-
else
.ui-box
%table
.zebra-striped
%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
|
-
data
=
process
.
gsub!
(
/\s+/m
,
'|'
).
strip
.
split
(
'|'
)
%tr
-
6
.
times
do
%td
=
data
.
shift
%td
%td
=
data
.
join
(
" "
)
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