Complete WAIT task inside for loop by TaskRef
See discussion https://github.com/Netflix/conductor/discussions/2873 
Seems like it was partially fixed https://github.com/Netflix/conductor/pull/2883 for eventhandler actions, but did not get fixed for default WAIT task handlers.

diff --git a/core/src/main/java/com/netflix/conductor/core/events/queue/DefaultEventQueueProcessor.java b/core/src/main/java/com/netflix/conductor/core/events/queue/DefaultEventQueueProcessor.java
index 78abf836b..f1c508803 100644
--- a/core/src/main/java/com/netflix/conductor/core/events/queue/DefaultEventQueueProcessor.java
+++ b/core/src/main/java/com/netflix/conductor/core/events/queue/DefaultEventQueueProcessor.java
@@ -22,6 +22,7 @@ import org.springframework.stereotype.Component;
 
 import com.netflix.conductor.common.metadata.tasks.Task;
 import com.netflix.conductor.common.metadata.tasks.TaskResult;
+import com.netflix.conductor.common.utils.TaskUtils;
 import com.netflix.conductor.core.exception.NotFoundException;
 import com.netflix.conductor.core.execution.WorkflowExecutor;
 import com.netflix.conductor.model.TaskModel;
@@ -124,7 +125,10 @@ public class DefaultEventQueueProcessor {
                                                     .filter(
                                                             task ->
                                                                     !task.getStatus().isTerminal()
-                                                                            && task.getReferenceTaskName()
+                                                                            && TaskUtils
+                                                                                    .removeIterationFromTaskRefName(
+                                                                                            task
+                                                                                                    .getReferenceTaskName())
                                                                                     .equals(
                                                                                             taskRefName))
                                                     .findFirst();
['core/src/main/java/com/netflix/conductor/core/events/queue/DefaultEventQueueProcessor.java']