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 := cron.New(cron.WithLocation(time.UTC))
c.AddFunc("00 * * *", func() { cfg.Run() }) c.AddFunc("00 * * *", func() { cfg.Run() })
c.Start()
// Listen for the interrupt signal. // Listen for the interrupt signal.
<-ctx.Done() <-ctx.Done()

View File

@ -1,7 +1,7 @@
// Code generated by version.sh (@generated) DO NOT EDIT. // Code generated by version.sh (@generated) DO NOT EDIT.
package main package main
var githash = "f6fdd83" var githash = "c72f903"
var branch = "v2" var branch = "v2"
var buildstamp = "2023-07-31_18:47:13" var buildstamp = "2023-07-31_22:15:30"
var commits = "76" var commits = "77"
var version = "f6fdd83-b76 - 2023-07-31_18:47:13" var version = "c72f903-b77 - 2023-07-31_22:15:30"