This commit is contained in:
mr
2024-08-20 09:23:05 +02:00
parent e5cfd6f4fb
commit 825c18b6d6
8 changed files with 66 additions and 62 deletions

View File

@@ -3,6 +3,7 @@ package daemons
import (
"encoding/json"
"fmt"
"oc-schedulerd/conf"
"sync"
"time"
@@ -72,7 +73,7 @@ type ScheduleManager struct {
// on workflows' scheduling. Messages must contain
// workflow execution ID, to allow retrieval of execution infos
func (s *ScheduleManager) ListenForWorkflowSubmissions() {
nc, err := nats.Connect(nats.DefaultURL)
nc, err := nats.Connect(conf.GetConfig().NatsUrl)
if err != nil {
s.Logger.Error().Msg("Could not connect to NATS")
return