
Sometimes the subunit2sql DB migrations can take a *really* long time it'd kinda be nice to know exactly how long. In an effort to actually know the duration this commit simple runs the DB migrations under time to record how much time we're actually spending on running these migrations. That way it'll be logged in case anyone wants to bother to check. (which is admittedly unlikely) Change-Id: I31fe204f0544e9b7b58158a578552f907aa18543
4 lines
143 B
Bash
4 lines
143 B
Bash
#!/usr/bin/env bash
|
|
|
|
(time subunit2sql-db-manage --config-file /etc/subunit2sql.conf upgrade head) > /var/log/subunit2sql_migration.log 2>&1 &
|