fix #580
This commit is contained in:
parent
b6437b5a4c
commit
d75013a0e8
10 changed files with 65 additions and 13 deletions
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue