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
318f96a4
Commit
318f96a4
authored
Oct 17, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix_sidekiq_process_count' of /home/git/repositories/gitlab/gitlabhq
parents
2be2558c
73d19bb3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
lib/tasks/gitlab/check.rake
lib/tasks/gitlab/check.rake
+7
-7
No files found.
lib/tasks/gitlab/check.rake
View file @
318f96a4
...
...
@@ -643,7 +643,7 @@ namespace :gitlab do
def
check_sidekiq_running
print
"Running? ... "
if
sidekiq_process_
match
if
sidekiq_process_
count
>
0
puts
"yes"
.
green
else
puts
"no"
.
red
...
...
@@ -659,14 +659,14 @@ namespace :gitlab do
end
def
only_one_sidekiq_running
sidekiq_match
=
sidekiq_process_match
return
unless
sidekiq_match
process_count
=
sidekiq_process_count
return
if
process_count
.
zero?
print
'Number of Sidekiq processes ... '
if
sidekiq_match
.
length
==
1
if
process_count
==
1
puts
'1'
.
green
else
puts
"
#{
sidekiq_match
.
length
}
"
.
red
puts
"
#{
process_count
}
"
.
red
try_fixing_it
(
'sudo service gitlab stop'
,
"sudo pkill -u
#{
gitlab_user
}
-f sidekiq"
,
...
...
@@ -677,8 +677,8 @@ namespace :gitlab do
end
end
def
sidekiq_process_
match
run_and_match
(
"ps ux | grep -i sidekiq | grep -v grep"
,
/(sidekiq \d+\.\d+\.\d+.+$)/
)
def
sidekiq_process_
count
`ps ux`
.
scan
(
/sidekiq \d+\.\d+\.\d+/
).
count
end
end
...
...
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