From 2a737ad559e4cee11c1b80c49ab8ca6d93a68b98 Mon Sep 17 00:00:00 2001 From: pb Date: Wed, 30 Apr 2025 12:47:46 +0200 Subject: [PATCH] printing in schedules --- models/workflow_execution/workflow_scheduler.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/models/workflow_execution/workflow_scheduler.go b/models/workflow_execution/workflow_scheduler.go index 4bc6115..03bbe01 100644 --- a/models/workflow_execution/workflow_scheduler.go +++ b/models/workflow_execution/workflow_scheduler.go @@ -83,6 +83,7 @@ func (ws *WorkflowSchedule) CheckBooking(wfID string, request *tools.APIRequest) meth = strings.ReplaceAll(meth, ":start_date", b.ExpectedStartDate.Format("2006-01-02T15:04:05")) meth = strings.ReplaceAll(meth, ":end_date", b.ExpectedEndDate.Format("2006-01-02T15:04:05")) request.Caller.URLS[tools.BOOKING][tools.GET] = meth + fmt.Println("Peer exec on " + b.DestPeerID) _, err := (&peer.Peer{}).LaunchPeerExecution(b.DestPeerID, b.ResourceID, tools.BOOKING, tools.GET, nil, request.Caller) if err != nil { return false, wf, execs, bookings, err @@ -113,7 +114,7 @@ func (ws *WorkflowSchedule) Schedules(wfID string, request *tools.APIRequest) (* } ws.Workflow = wf for _, booking := range bookings { - fmt.Println("Trying to book on ") + fmt.Println("Trying to schedule on ") fmt.Println(booking.DestPeerID) _, err := (&peer.Peer{}).LaunchPeerExecution(booking.DestPeerID, "", tools.BOOKING, tools.POST, booking.Serialize(booking), request.Caller)