mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-22 13:08:18 +00:00
cancel all pending or started builds when the app starts
This commit is contained in:
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user