didn't put the blocking loop in the right place for post booking

This commit is contained in:
pb 2025-05-27 12:06:10 +02:00
parent 0d96cc53bf
commit cd7ae788b1

View File

@ -164,11 +164,11 @@ func (ws *WorkflowSchedule) Schedules(wfID string, request *tools.APIRequest) (*
for _, booking := range bookings {
go ws.BookExecs(booking, request, errCh, &m)
for i := 0; i < len(bookings); i++ {
if err := <- errCh ; err != nil {
return ws, wf, executions, errors.New("could not launch the peer execution : " + fmt.Sprintf("%v", err))
}
}
for i := 0; i < len(bookings); i++ {
if err := <- errCh ; err != nil {
return ws, wf, executions, errors.New("could not launch the peer execution : " + fmt.Sprintf("%v", err))
}
}