Start footprint service

This commit is contained in:
Jan Eitzinger 2024-09-02 12:07:44 +02:00
parent c459724114
commit 47b14f932e
2 changed files with 3 additions and 1 deletions

View File

@ -16,7 +16,7 @@ import (
"github.com/go-co-op/gocron/v2"
)
func registerFootprintWorker() {
func RegisterFootprintWorker() {
log.Info("Register Footprint Update service")
d, _ := time.ParseDuration("10m")
s.NewJob(gocron.DurationJob(d),

View File

@ -79,6 +79,8 @@ func Start() {
RegisterLdapSyncService(lc.SyncInterval)
}
RegisterFootprintWorker()
s.Start()
}