From 2a763006db1bb605d3c1c0a2c03e0a383ef293b6 Mon Sep 17 00:00:00 2001 From: pb Date: Mon, 26 May 2025 17:41:26 +0200 Subject: [PATCH] counting round in exec --- models/workflow_execution/workflow_scheduler.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/models/workflow_execution/workflow_scheduler.go b/models/workflow_execution/workflow_scheduler.go index f41a23b..33743cf 100644 --- a/models/workflow_execution/workflow_scheduler.go +++ b/models/workflow_execution/workflow_scheduler.go @@ -79,8 +79,8 @@ func (ws *WorkflowSchedule) CheckBooking(wfID string, request *tools.APIRequest) return false, wf, []*WorkflowExecution{}, []*booking.Booking{}, err } bookings := []*booking.Booking{} - for _, exec := range execs { - l.Debug().Msg("looping throughs execs") + for i, exec := range execs { + l.Debug().Msg("looping throughs execs : " + string(i)) bookings = append(bookings, exec.Book(ws.UUID, wfID, priceds)...) for _, b := range bookings { meth := request.Caller.URLS[tools.BOOKING][tools.GET] @@ -90,7 +90,7 @@ func (ws *WorkflowSchedule) CheckBooking(wfID string, request *tools.APIRequest) request.Caller.URLS[tools.BOOKING][tools.GET] = meth l.Debug().Msg("Get booking on" + b.DestPeerID) _, err := (&peer.Peer{}).LaunchPeerExecution(b.DestPeerID, b.ResourceID, tools.BOOKING, tools.GET, nil, request.Caller) - l.Debug().Msg("Received response from Get booking on" + b.DestPeerID) + l.Debug().Msg("Received response from Get booking on " + b.DestPeerID) if err != nil { return false, wf, execs, bookings, err }