Skip to content

Commit e77dd2a

Browse files
authored
[Fix-17317][Task-API] Add kill yarn or k8s application after killing task (#17325)
1 parent 6f53df7 commit e77dd2a

File tree

1 file changed

+3
-0
lines changed
  • dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api

1 file changed

+3
-0
lines changed

dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/AbstractCommandExecutor.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,9 @@ public void cancelApplication() throws InterruptedException {
221221
log.error("Failed to kill process tree for task: {}, pid: {}",
222222
taskRequest.getTaskAppId(), taskRequest.getProcessId());
223223
}
224+
225+
// Try to kill yarn or k8s application
226+
ProcessUtils.cancelApplication(taskRequest);
224227
}
225228

226229
private void collectPodLogIfNeeded() {

0 commit comments

Comments
 (0)