ww1516123 commented on issue #835: 工作流和任务实例一直显示运行,无法取消 URL: https://github.com/apache/incubator-dolphinscheduler/issues/835#issuecomment-533480467 class cn.escheduler.server.worker.runner.TaskScheduleThread have a method name getTaskLogPath. ```java private String getTaskLogPath() { String baseLog = ((TaskLogDiscriminator) ((SiftingAppender) ((LoggerContext) LoggerFactory.getILoggerFactory()) .getLogger("ROOT") .getAppender("TASKLOGFILE")) .getDiscriminator()).getLogBase(); //this line cannot get if (baseLog.startsWith(Constants.SINGLE_SLASH)){ return baseLog + Constants.SINGLE_SLASH + taskInstance.getProcessDefinitionId() + Constants.SINGLE_SLASH + taskInstance.getProcessInstanceId() + Constants.SINGLE_SLASH + taskInstance.getId() + ".log"; } return System.getProperty("user.dir") + Constants.SINGLE_SLASH + baseLog + Constants.SINGLE_SLASH + taskInstance.getProcessDefinitionId() + Constants.SINGLE_SLASH + taskInstance.getProcessInstanceId() + Constants.SINGLE_SLASH + taskInstance.getId() + ".log"; } ```
---------------------------------------------------------------- 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] With regards, Apache Git Services
