Bläddra i källkod

fix the full log path of logical task is not be set when task is dispatched (#14819) (#14821)

sgw 1 år sedan
förälder
incheckning
ac04288e2b

+ 2 - 0
dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/rpc/LogicITaskInstanceDispatchOperationFunction.java

@@ -56,6 +56,8 @@ public class LogicITaskInstanceDispatchOperationFunction
             final int workflowInstanceId = taskExecutionContext.getProcessInstanceId();
             final String taskInstanceName = taskExecutionContext.getTaskName();
 
+            taskExecutionContext.setLogPath(LogUtils.getTaskInstanceLogFullPath(taskExecutionContext));
+
             LogUtils.setWorkflowAndTaskInstanceIDMDC(workflowInstanceId, taskInstanceId);
             LogUtils.setTaskInstanceLogFullPathMDC(taskExecutionContext.getLogPath());