From 302c863cda651130286838309d3d897cace93534 Mon Sep 17 00:00:00 2001 From: Unknown Date: Sun, 8 Jun 2014 04:45:34 -0400 Subject: Fix #242 --- modules/cron/cron.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules/cron/cron.go') diff --git a/modules/cron/cron.go b/modules/cron/cron.go index 27b1fc41bb..c06e649bb7 100644 --- a/modules/cron/cron.go +++ b/modules/cron/cron.go @@ -5,13 +5,17 @@ package cron import ( + "fmt" + "github.com/robfig/cron" "github.com/gogits/gogs/models" + "github.com/gogits/gogs/modules/setting" ) func NewCronContext() { c := cron.New() c.AddFunc("@every 1h", models.MirrorUpdate) + c.AddFunc(fmt.Sprintf("@every %dm", setting.WebhookTaskInterval), models.DeliverHooks) c.Start() } -- cgit v1.2.3