Stop then restart the fmn-worker and fmn-backend
This commit is contained in:
parent
e4b1416e60
commit
a83d6d2b66
1 changed files with 18 additions and 0 deletions
|
@ -66,11 +66,29 @@
|
|||
- name: Stop the notification backend
|
||||
service: name="fedmsg-hub" state=stopped
|
||||
|
||||
- name: Stop the workers and backends
|
||||
service: name={{ item }} state=stopped
|
||||
with_items:
|
||||
- fmn-backend@1
|
||||
- fmn-worker@1
|
||||
- fmn-worker@2
|
||||
- fmn-worker@3
|
||||
- fmn-worker@4
|
||||
|
||||
- name: Upgrade the database
|
||||
command: /usr/bin/alembic -c /usr/share/fmn.lib/alembic.ini upgrade head
|
||||
args:
|
||||
chdir: /usr/share/fmn.lib/
|
||||
|
||||
- name: Re-start the workers and the backend
|
||||
service: name={{ item }} state=started
|
||||
with_items:
|
||||
- fmn-backend@1
|
||||
- fmn-worker@1
|
||||
- fmn-worker@2
|
||||
- fmn-worker@3
|
||||
- fmn-worker@4
|
||||
|
||||
- name: And... start the backend again
|
||||
service: name="fedmsg-hub" state=started
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue