From 54a16bd410de3f482119109ca65dd880625b7c7a Mon Sep 17 00:00:00 2001 From: shoopea Date: Tue, 1 Aug 2023 00:15:54 +0200 Subject: [PATCH] add cron start --- admin.go | 1 + version.go | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/admin.go b/admin.go index 27326cc..5848258 100644 --- a/admin.go +++ b/admin.go @@ -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() diff --git a/version.go b/version.go index 1ad253f..da82a5c 100644 --- a/version.go +++ b/version.go @@ -1,7 +1,7 @@ // Code generated by version.sh (@generated) DO NOT EDIT. package main -var githash = "f6fdd83" +var githash = "c72f903" var branch = "v2" -var buildstamp = "2023-07-31_18:47:13" -var commits = "76" -var version = "f6fdd83-b76 - 2023-07-31_18:47:13" +var buildstamp = "2023-07-31_22:15:30" +var commits = "77" +var version = "c72f903-b77 - 2023-07-31_22:15:30"