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
edx
configuration
Commits
861eb6dd
Commit
861eb6dd
authored
Jul 23, 2015
by
Feanil Patel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update worker killing logic and re-order playbook.
parent
62c92997
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
playbooks/vagrant-fullstack.yml
+1
-1
util/vagrant/migrate.sh
+4
-3
No files found.
playbooks/vagrant-fullstack.yml
View file @
861eb6dd
...
@@ -29,8 +29,8 @@
...
@@ -29,8 +29,8 @@
-
cms
-
cms
-
edxlocal
-
edxlocal
-
mongo
-
mongo
-
{
role
:
'
edxapp'
,
celery_worker
:
True
}
-
edxapp
-
edxapp
-
{
role
:
'
edxapp'
,
celery_worker
:
True
}
-
demo
-
demo
-
{
role
:
'
rabbitmq'
,
rabbitmq_ip
:
'
127.0.0.1'
}
-
{
role
:
'
rabbitmq'
,
rabbitmq_ip
:
'
127.0.0.1'
}
-
oraclejdk
-
oraclejdk
...
...
util/vagrant/migrate.sh
View file @
861eb6dd
...
@@ -106,13 +106,14 @@ EOM
...
@@ -106,13 +106,14 @@ EOM
else
else
echo
"Killing all celery worker processes."
echo
"Killing all celery worker processes."
sudo
${
OPENEDX_ROOT
}
/bin/supervisorctl stop edxapp_worker:
*
&
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.
# 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
{}
sudo
pgrep
-lf
celery
|
grep
worker
|
awk
'{ print $1}'
|
sudo
xargs
-I
{}
kill
-9
{}
sleep
2
sleep
3
sudo
pgrep
-lf
celery
|
grep
worker
|
awk
'{ print $1}'
|
sudo
xargs
-I
{}
kill
-9
{}
sudo
pgrep
-lf
celery
|
grep
worker
|
awk
'{ print $1}'
|
sudo
xargs
-I
{}
kill
-9
{}
sleep
2
sleep
3
sudo
pgrep
-lf
celery
|
grep
worker
|
awk
'{ print $1}'
|
sudo
xargs
-I
{}
kill
-9
{}
sudo
pgrep
-lf
celery
|
grep
worker
|
awk
'{ print $1}'
|
sudo
xargs
-I
{}
kill
-9
{}
sleep
2
sleep
3
sudo
pgrep
-lf
celery
|
grep
worker
|
awk
'{ print $1}'
|
sudo
xargs
-I
{}
kill
-9
{}
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
sudo
-u
forum git
-C
${
OPENEDX_ROOT
}
/app/forum/.rbenv reset
--hard
fi
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