change to fit update to oclib

This commit is contained in:
pb 2024-09-04 17:29:00 +02:00
parent a69ecc4ab5
commit 2bc6e4327e

13
main.go
View File

@ -3,16 +3,21 @@ package main
import ( import (
"fmt" "fmt"
conf "oc-schedulerd/conf" "oc-schedulerd/conf"
"oc-schedulerd/daemons" "oc-schedulerd/daemons"
oclib "cloud.o-forge.io/core/oc-lib" oclib "cloud.o-forge.io/core/oc-lib"
"cloud.o-forge.io/core/oc-lib/tools"
) )
func main() { func main() {
tools.SetConfig(conf.GetConfig().MongoUrl, "DC_myDC", "") oclib.SetConfig(
oclib.Init("oc-schedulerd","","") conf.GetConfig().MongoUrl,
conf.GetConfig().MongoUrl,
conf.GetConfig().NatsUrl,
conf.GetConfig().LokiUrl,
conf.GetConfig().Logs,
)
oclib.Init("oc-schedulerd")
sch_mngr := daemons.ScheduleManager{Logger: oclib.GetLogger()} sch_mngr := daemons.ScheduleManager{Logger: oclib.GetLogger()}
exe_mngr := daemons.ExecutionManager{} exe_mngr := daemons.ExecutionManager{}