mirror of
https://github.com/logos-messaging/telemetry.git
synced 2026-01-08 17:13:11 +00:00
fix: update aggregator to run hourly
This commit is contained in:
parent
0c60bb544b
commit
ac48453a37
@ -20,7 +20,7 @@ func main() {
|
|||||||
|
|
||||||
aggregator := telemetry.NewAggregator(db)
|
aggregator := telemetry.NewAggregator(db)
|
||||||
c := cron.New()
|
c := cron.New()
|
||||||
c.AddFunc("* * * * *", func() {
|
c.AddFunc("0 * * * *", func() {
|
||||||
aggregator.Run(time.Hour)
|
aggregator.Run(time.Hour)
|
||||||
})
|
})
|
||||||
c.Start()
|
c.Start()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user