diff options
Diffstat (limited to 'modules/cron/manager.go')
-rw-r--r-- | modules/cron/manager.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/cron/manager.go b/modules/cron/manager.go index 563426fb79..fcf559bcb0 100644 --- a/modules/cron/manager.go +++ b/modules/cron/manager.go @@ -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() } |