Browse Source

Merge branch 'refactor-worker' into refactor-worker

pull/2/head
Tboy 5 years ago committed by GitHub
parent
commit
0e0c47925b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/runner/MasterBaseTaskExecThread.java
  2. 2
      dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/worker/runner/TaskScheduleThread.java

2
dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/runner/MasterBaseTaskExecThread.java

@ -128,7 +128,6 @@ public class MasterBaseTaskExecThread implements Callable<Boolean> {
// TODO send task to worker // TODO send task to worker
public void sendToWorker(TaskInstance taskInstance){ public void sendToWorker(TaskInstance taskInstance){
final Address address = new Address("127.0.0.1", 12346); final Address address = new Address("127.0.0.1", 12346);
/** /**
* set taskInstance relation * set taskInstance relation
*/ */
@ -144,7 +143,6 @@ public class MasterBaseTaskExecThread implements Callable<Boolean> {
responseCommand.getBody(), ExecuteTaskAckCommand.class); responseCommand.getBody(), ExecuteTaskAckCommand.class);
logger.info("taskAckCommand : {}",taskAckCommand); logger.info("taskAckCommand : {}",taskAckCommand);
processService.changeTaskState(ExecutionStatus.of(taskAckCommand.getStatus()), processService.changeTaskState(ExecutionStatus.of(taskAckCommand.getStatus()),
taskAckCommand.getStartTime(), taskAckCommand.getStartTime(),
taskAckCommand.getHost(), taskAckCommand.getHost(),

2
dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/worker/runner/TaskScheduleThread.java

@ -96,7 +96,7 @@ public class TaskScheduleThread implements Runnable {
@Override @Override
public void run() { public void run() {
ExecuteTaskResponseCommand responseCommand = new ExecuteTaskResponseCommand(taskInfo.getTaskId()); ExecuteTaskResponseCommand responseCommand = new ExecuteTaskResponseCommand(taskInstance.getId());
try { try {
// tell master that task is in executing // tell master that task is in executing

Loading…
Cancel
Save