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
|
||||
args:
|
||||
chdir: /usr/share/datanommer.models/
|
||||
async: 20000
|
||||
poll: 60
|
||||
|
||||
- name: And... start the backend again
|
||||
service: name="fedmsg-hub" state=started
|
||||
|
|
|
@ -65,10 +65,14 @@
|
|||
tasks:
|
||||
- name: Stop the notification backend
|
||||
service: name="fedmsg-hub" state=stopped
|
||||
|
||||
- name: Upgrade the database
|
||||
command: /usr/bin/alembic upgrade head
|
||||
args:
|
||||
chdir: /usr/share/fmn.lib/
|
||||
async: 20000
|
||||
poll: 60
|
||||
|
||||
- name: And... start the backend again
|
||||
service: name="fedmsg-hub" state=started
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue