commit before rebuild
This commit is contained in:
18
main.go
18
main.go
@@ -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")
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user