Browse Source

[Fix-14503][Worker] Fix the problem of subprocess cannot be killed (#14504)

Co-authored-by: xiangzihao <460888207@qq.com>
3.2.1-prepare
Rick Cheng 1 year ago committed by GitHub
parent
commit
5a6f1c88a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      dolphinscheduler-worker/src/main/java/org/apache/dolphinscheduler/server/worker/processor/WorkerTaskKillProcessor.java

3
dolphinscheduler-worker/src/main/java/org/apache/dolphinscheduler/server/worker/processor/WorkerTaskKillProcessor.java

@ -85,6 +85,7 @@ public class WorkerTaskKillProcessor implements WorkerRpcProcessor {
return;
}
boolean result = doKill(taskExecutionContext);
this.cancelApplication(taskInstanceId);
int processId = taskExecutionContext.getProcessId();
@ -97,8 +98,6 @@ public class WorkerTaskKillProcessor implements WorkerRpcProcessor {
return;
}
boolean result = doKill(taskExecutionContext);
taskExecutionContext.setCurrentExecutionStatus(
result ? TaskExecutionStatus.SUCCESS : TaskExecutionStatus.FAILURE);
sendTaskKillResponseCommand(channel, message.getOpaque(), taskExecutionContext);

Loading…
Cancel
Save