Add the host address of the execution server to the sub task task instance. (#9758)
Co-authored-by: WangJPLeo <wangjipeng@whaleops.com>
This commit is contained in:
parent
8b3984b20e
commit
897d7cb555
|
|
@ -21,6 +21,7 @@ import com.fasterxml.jackson.core.type.TypeReference;
|
|||
import com.google.auto.service.AutoService;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.dolphinscheduler.common.utils.JSONUtils;
|
||||
import org.apache.dolphinscheduler.common.utils.NetUtils;
|
||||
import org.apache.dolphinscheduler.dao.entity.ProcessInstance;
|
||||
import org.apache.dolphinscheduler.plugin.task.api.enums.Direct;
|
||||
import org.apache.dolphinscheduler.plugin.task.api.enums.ExecutionStatus;
|
||||
|
|
@ -181,7 +182,7 @@ public class SubTaskProcessor extends BaseTaskProcessor {
|
|||
if (subProcessInstance == null || taskInstance.getState().typeIsFinished()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
taskInstance.setHost(NetUtils.getAddr(masterConfig.getListenPort()));
|
||||
taskInstance.setState(ExecutionStatus.RUNNING_EXECUTION);
|
||||
taskInstance.setStartTime(new Date());
|
||||
processService.updateTaskInstance(taskInstance);
|
||||
|
|
|
|||
Loading…
Reference in New Issue