add cron start

This commit is contained in:
shoopea
2023-08-01 00:15:54 +02:00
parent c72f903e31
commit 54a16bd410
2 changed files with 5 additions and 4 deletions

View File

@@ -87,6 +87,7 @@ func (a *AdminConfig) Run() {
c := cron.New(cron.WithLocation(time.UTC))
c.AddFunc("00 * * *", func() { cfg.Run() })
c.Start()
// Listen for the interrupt signal.
<-ctx.Done()