Browse Source

[Improvement][Worker] No need to kill remote app when appid is empty (#14534)

3.2.1-prepare
Rick Cheng 1 year ago committed by GitHub
parent
commit
09afa75a3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/utils/ProcessUtils.java

1
dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/utils/ProcessUtils.java

@ -172,6 +172,7 @@ public final class ProcessUtils {
} }
if (CollectionUtils.isEmpty(appIds)) { if (CollectionUtils.isEmpty(appIds)) {
log.info("The appId is empty"); log.info("The appId is empty");
return;
} }
ApplicationManager applicationManager = applicationManagerMap.get(ResourceManagerType.YARN); ApplicationManager applicationManager = applicationManagerMap.get(ResourceManagerType.YARN);
applicationManager.killApplication(new YarnApplicationManagerContext(executePath, tenantCode, appIds)); applicationManager.killApplication(new YarnApplicationManagerContext(executePath, tenantCode, appIds));

Loading…
Cancel
Save