Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
configuration
Commits
630a57d4
Commit
630a57d4
authored
Nov 03, 2015
by
Ned Batchelder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Killing celery processes shouldn't depend on being interactive
parent
3a0697b2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
13 deletions
+15
-13
util/vagrant/migrate.sh
+15
-13
No files found.
util/vagrant/migrate.sh
View file @
630a57d4
...
...
@@ -91,22 +91,24 @@ EOM
if
[
"
$input
"
!=
"yes"
-a
"
$input
"
!=
"y"
]
;
then
echo
"Quitting"
exit
1
else
echo
"Killing all celery worker processes."
sudo
${
OPENEDX_ROOT
}
/bin/supervisorctl stop edxapp_worker:
*
&
sleep 3
# Supervisor restarts the process a couple of times so we have to kill it multiple times.
sudo
pgrep
-lf
celery |
grep
worker | awk
'{ print $1}'
|
sudo
xargs
-I
{}
kill
-9
{}
sleep 3
sudo
pgrep
-lf
celery |
grep
worker | awk
'{ print $1}'
|
sudo
xargs
-I
{}
kill
-9
{}
sleep 3
sudo
pgrep
-lf
celery |
grep
worker | awk
'{ print $1}'
|
sudo
xargs
-I
{}
kill
-9
{}
sleep 3
sudo
pgrep
-lf
celery |
grep
worker | awk
'{ print $1}'
|
sudo
xargs
-I
{}
kill
-9
{}
sudo
-u
forum git
-C
${
OPENEDX_ROOT
}
/app/forum/.rbenv reset
--hard
fi
fi
if
[[
$TARGET
==
*
cypress
*
]]
;
then
echo
"Killing all celery worker processes."
sudo
${
OPENEDX_ROOT
}
/bin/supervisorctl stop edxapp_worker:
*
&
sleep 3
# Supervisor restarts the process a couple of times so we have to kill it multiple times.
sudo
pgrep
-lf
celery |
grep
worker | awk
'{ print $1}'
|
sudo
xargs
-I
{}
kill
-9
{}
sleep 3
sudo
pgrep
-lf
celery |
grep
worker | awk
'{ print $1}'
|
sudo
xargs
-I
{}
kill
-9
{}
sleep 3
sudo
pgrep
-lf
celery |
grep
worker | awk
'{ print $1}'
|
sudo
xargs
-I
{}
kill
-9
{}
sleep 3
sudo
pgrep
-lf
celery |
grep
worker | awk
'{ print $1}'
|
sudo
xargs
-I
{}
kill
-9
{}
sudo
-u
forum git
-C
${
OPENEDX_ROOT
}
/app/forum/.rbenv reset
--hard
fi
if
[
-f
/edx/app/edx_ansible/server-vars.yml
]
;
then
SERVER_VARS
=
"--extra-vars=
\"
@
${
OPENEDX_ROOT
}
/app/edx_ansible/server-vars.yml
\"
"
fi
...
...
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