From 47b14f932ed19ff02728edddd80641f002b9d3a6 Mon Sep 17 00:00:00 2001 From: Jan Eitzinger Date: Mon, 2 Sep 2024 12:07:44 +0200 Subject: [PATCH] Start footprint service --- internal/taskManager/footprintService.go | 2 +- internal/taskManager/taskManager.go | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/taskManager/footprintService.go b/internal/taskManager/footprintService.go index d14026d..ff76e25 100644 --- a/internal/taskManager/footprintService.go +++ b/internal/taskManager/footprintService.go @@ -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), diff --git a/internal/taskManager/taskManager.go b/internal/taskManager/taskManager.go index 006469c..b31a1a1 100644 --- a/internal/taskManager/taskManager.go +++ b/internal/taskManager/taskManager.go @@ -79,6 +79,8 @@ func Start() { RegisterLdapSyncService(lc.SyncInterval) } + RegisterFootprintWorker() + s.Start() }