counting round in exec

This commit is contained in:
pb 2025-05-26 17:41:26 +02:00
parent 522c66653b
commit 2a763006db

View File

@ -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
}