add cron start
This commit is contained in:
parent
c72f903e31
commit
54a16bd410
1
admin.go
1
admin.go
@ -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()
|
||||||
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user