cancel all pending or started builds when the app starts

This commit is contained in:
Brad
2014-06-11 12:39:29 -07:00
parent 88ee774d8d
commit 1a143f8fb4
3 changed files with 23 additions and 1 deletions

View File

@@ -93,6 +93,9 @@ func main() {
perms := perm.NewManager(db)
commits := commit.NewManager(db)
// cancel all previously running builds
go commits.CancelAll()
// setup the session managers
sess := session.NewSession(users)