Turn alembic upgrade steps into async operations.

This commit is contained in:
Ralph Bean 2015-02-27 16:10:12 +00:00
parent cd2ba75d78
commit 8163343351
2 changed files with 6 additions and 0 deletions

View file

@ -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

View file

@ -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