diff --git a/src/main/java/org/opensearch/flowframework/workflow/ProcessNode.java b/src/main/java/org/opensearch/flowframework/workflow/ProcessNode.java index 856c31bfb..064091b3d 100644 --- a/src/main/java/org/opensearch/flowframework/workflow/ProcessNode.java +++ b/src/main/java/org/opensearch/flowframework/workflow/ProcessNode.java @@ -8,12 +8,7 @@ */ package org.opensearch.flowframework.workflow; -import org.apache.logging.log4j.LogManager; -import org.apache.logging.log4j.Logger; -import org.opensearch.action.support.PlainActionFuture; -import org.opensearch.common.unit.TimeValue; -import org.opensearch.threadpool.Scheduler.ScheduledCancellable; -import org.opensearch.threadpool.ThreadPool; +import static org.opensearch.flowframework.common.CommonValue.WORKFLOW_THREAD_POOL; import java.util.HashMap; import java.util.List; @@ -21,7 +16,12 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.TimeoutException; -import static org.opensearch.flowframework.common.CommonValue.WORKFLOW_THREAD_POOL; +import org.apache.logging.log4j.LogManager; +import org.apache.logging.log4j.Logger; +import org.opensearch.action.support.PlainActionFuture; +import org.opensearch.common.unit.TimeValue; +import org.opensearch.threadpool.Scheduler.ScheduledCancellable; +import org.opensearch.threadpool.ThreadPool; /** * Representation of a process node in a workflow graph. @@ -146,13 +146,13 @@ public PlainActionFuture execute() { CompletableFuture.runAsync(() -> { try { - logger.info("Starting {}.", this.id); // get the input data from predecessor(s) Map inputMap = new HashMap<>(); for (ProcessNode node : predecessors) { WorkflowData wd = node.future().actionGet(); inputMap.put(wd.getNodeId(), wd); } + logger.info("Starting {}.", this.id); ScheduledCancellable delayExec = null; if (this.nodeTimeout.compareTo(TimeValue.ZERO) > 0) {