1
0
Fork 0
forked from forgejo/forgejo
This commit is contained in:
Unknwon 2014-11-30 02:26:29 -05:00
parent b6437b5a4c
commit d75013a0e8
10 changed files with 65 additions and 13 deletions

View file

@ -14,8 +14,10 @@ import (
var c = New()
func NewCronContext() {
models.GitFsck()
c.AddFunc("Update mirrors", "@every 1h", models.MirrorUpdate)
c.AddFunc("Deliver hooks", fmt.Sprintf("@every %dm", setting.WebhookTaskInterval), models.DeliverHooks)
c.AddFunc("Repository health check", "@every 1h", models.GitFsck)
c.Start()
}