Turn alembic upgrade steps into async operations.
This commit is contained in:
parent
cd2ba75d78
commit
8163343351
2 changed files with 6 additions and 0 deletions
|
@ -110,6 +110,8 @@
|
||||||
command: /usr/bin/alembic upgrade head
|
command: /usr/bin/alembic upgrade head
|
||||||
args:
|
args:
|
||||||
chdir: /usr/share/datanommer.models/
|
chdir: /usr/share/datanommer.models/
|
||||||
|
async: 20000
|
||||||
|
poll: 60
|
||||||
|
|
||||||
- name: And... start the backend again
|
- name: And... start the backend again
|
||||||
service: name="fedmsg-hub" state=started
|
service: name="fedmsg-hub" state=started
|
||||||
|
|
|
@ -65,10 +65,14 @@
|
||||||
tasks:
|
tasks:
|
||||||
- name: Stop the notification backend
|
- name: Stop the notification backend
|
||||||
service: name="fedmsg-hub" state=stopped
|
service: name="fedmsg-hub" state=stopped
|
||||||
|
|
||||||
- name: Upgrade the database
|
- name: Upgrade the database
|
||||||
command: /usr/bin/alembic upgrade head
|
command: /usr/bin/alembic upgrade head
|
||||||
args:
|
args:
|
||||||
chdir: /usr/share/fmn.lib/
|
chdir: /usr/share/fmn.lib/
|
||||||
|
async: 20000
|
||||||
|
poll: 60
|
||||||
|
|
||||||
- name: And... start the backend again
|
- name: And... start the backend again
|
||||||
service: name="fedmsg-hub" state=started
|
service: name="fedmsg-hub" state=started
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue