n3nash commented on a change in pull request #2092:
URL: https://github.com/apache/hudi/pull/2092#discussion_r504823094



##########
File path: 
hudi-integ-test/src/main/java/org/apache/hudi/integ/testsuite/dag/scheduler/DagScheduler.java
##########
@@ -109,12 +109,16 @@ private void executeNode(DagNode node) {
       throw new RuntimeException("DagNode already completed! Cannot 
re-execute");
     }
     try {
-      log.warn("executing node: " + node.getName() + " of type: " + 
node.getClass());
-      node.execute(executionContext);
-      node.setCompleted(true);
-      log.info("Finished executing {}", node.getName());
+      int repeatCount = node.getConfig().getRepeatCount();
+      while (repeatCount > 0) {
+        log.warn("executing node: " + node.getName() + " of type: " + 
node.getClass());
+        node.execute(executionContext);
+        node.setCompleted(true);

Review comment:
       You're right, I fixed the repeat count and tested it on the unit tests 
but didn't confirm the DAG under the demo's. I've changed the repeat count to 
be 1 in the docker DAG so it doesn't cause confusion and have added 
repeat_count only to the unit_test dags to confirm repeat count works. 




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to