commit before rebuild

This commit is contained in:
pb
2024-07-29 15:45:32 +02:00
parent 559bac5eb9
commit 0c02f26c28
13 changed files with 346 additions and 26 deletions

18
main.go
View File

@@ -5,6 +5,7 @@ import (
"os"
conf "oc-scheduler/conf"
"oc-scheduler/models"
"oc-scheduler/daemons"
"oc-scheduler/logger"
@@ -24,10 +25,17 @@ func main() {
logger.Logger.Info().Msg("Created argo_workflows/")
}
mngr := daemons.ScheduleManager{Api_url: apiurl}
var bookings models.ScheduledBooking
go mngr.RetrieveScheduling()
go mngr.ListenWorkflowSubmissions()
sch_mngr := daemons.ScheduleManager{Api_url: apiurl}
sch_mngr.SetBookings(&bookings)
exe_mngr := daemons.ExecutionManager{}
exe_mngr.SetBookings(&bookings)
go sch_mngr.SchedulePolling()
go exe_mngr.RetrieveNextExecutions()
sch_mngr.ListenForWorkflowSubmissions()
// method in Schedule manager that checks the first Schedule object for its start date and exe
@@ -46,9 +54,7 @@ func main() {
// g.LoadFrom(list["test-alpr"])
// g.ExportToArgo("test-alpr")
for(true){
fmt.Print("")
}
fmt.Print("stop")
}