test cronSendWarReport
This commit is contained in:
parent
f0b9969ce7
commit
d759694512
2
cron.go
2
cron.go
@ -11,7 +11,7 @@ import (
|
|||||||
func startCron() *cron.Cron {
|
func startCron() *cron.Cron {
|
||||||
c := cron.New(cron.WithLocation(time.UTC))
|
c := cron.New(cron.WithLocation(time.UTC))
|
||||||
c.AddFunc("15 0,8,16 * * *", cronSendWarReport)
|
c.AddFunc("15 0,8,16 * * *", cronSendWarReport)
|
||||||
c.AddFunc("@every 1min", cronSendWarReport)
|
c.AddFunc("@every 1m", cronSendWarReport)
|
||||||
c.Start()
|
c.Start()
|
||||||
return c
|
return c
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user