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
84a431f3
Commit
84a431f3
authored
Oct 28, 2013
by
John Jarvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
restarting the edxapp and edxapp workers using the supervisorctl module
parent
fda9f9a2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
8 deletions
+32
-8
playbooks/roles/edxapp/tasks/deploy.yml
+32
-8
No files found.
playbooks/roles/edxapp/tasks/deploy.yml
View file @
84a431f3
# Stop all services.
#
#
# TODO: the supervisor ansible module does not support
# stopping and starting services by group.
# Ignoring errors for initial install use-case
-
name
:
edxapp | stop the edxapp services (supervisor)
supervisorctl
:
>
name=
edxapp
name=
"edxapp:{{ item }}"
supervisorctl_path={{ supervisor_ctl }}
config={{ supervisor_cfg }}
state=stopped
when
:
celery_worker is not defined
with_items
:
service_variants_enabled
ignore_errors
:
true
tags
:
-
deploy
-
deploy
-
name
:
edxapp | stop edx workers
service
:
name=edx-workers state=stopped
-
name
:
edxapp | stop the celery worker services (supervisor)
supervisorctl
:
>
name="edxapp_worker:{{ item.service_variant }}_{{ item.queue }}_{{ item.concurrency }}"
supervisorctl_path={{ supervisor_ctl }}
config={{ supervisor_cfg }}
state=stopped
when
:
celery_worker is defined
with_items
:
edxapp_workers
ignore_errors
:
true
tags
:
-
deploy
-
deploy
# Do A Checkout
-
name
:
edxapp | checkout edx-platform repo into {{edxapp_code_dir}}
...
...
@@ -169,13 +181,25 @@
-
include
:
service_variant_config.yml
-
name
:
edxapp | restart the edxapp services (supervisor)
shell
:
"
{{
supervisor_ctl
}}
-c
{{
supervisor_cfg
}}
restart
edxapp"
supervisorctl
:
>
name="edxapp:{{ item }}"
supervisorctl_path={{ supervisor_ctl }}
config={{ supervisor_cfg }}
state=restarted
when
:
celery_worker is not defined
with_items
:
service_variants_enabled
ignore_errors
:
true
tags
:
-
deploy
-
name
:
edxapp | restart the celery worker services (supervisor)
shell
:
"
{{
supervisor_ctl
}}
-c
{{
supervisor_cfg
}}
restart
edxapp_worker"
supervisorctl
:
>
name="edxapp_worker:{{ item.service_variant }}_{{ item.queue }}_{{ item.concurrency }}"
supervisorctl_path={{ supervisor_ctl }}
config={{ supervisor_cfg }}
state=restarted
when
:
celery_worker is defined
with_items
:
edxapp_workers
ignore_errors
:
true
tags
:
-
deploy
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