test cronSendWarReport
This commit is contained in:
parent
be55f1d1e1
commit
f0b9969ce7
1
cron.go
1
cron.go
@ -11,6 +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.Start()
|
c.Start()
|
||||||
return c
|
return c
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user