Refactor Tagger package. Add fsNotify Service

This commit is contained in:
2025-05-19 16:08:43 +02:00
parent 14bad81b9f
commit 85f17c0fd8
7 changed files with 131 additions and 21 deletions

View File

@@ -19,7 +19,9 @@ import (
"github.com/ClusterCockpit/cc-backend/internal/importer"
"github.com/ClusterCockpit/cc-backend/internal/metricdata"
"github.com/ClusterCockpit/cc-backend/internal/repository"
"github.com/ClusterCockpit/cc-backend/internal/tagger"
"github.com/ClusterCockpit/cc-backend/internal/taskManager"
"github.com/ClusterCockpit/cc-backend/internal/util"
"github.com/ClusterCockpit/cc-backend/pkg/archive"
"github.com/ClusterCockpit/cc-backend/pkg/log"
"github.com/ClusterCockpit/cc-backend/pkg/runtimeEnv"
@@ -216,6 +218,7 @@ func main() {
}
archiver.Start(repository.GetJobRepository())
tagger.Init()
taskManager.Start()
serverInit()
@@ -237,6 +240,8 @@ func main() {
serverShutdown()
util.FsWatcherShutdown()
taskManager.Shutdown()
}()