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

This commit is contained in:
Rick Cheng 2023-07-13 15:40:58 +08:00 committed by GitHub
parent dd9c8af051
commit 09afa75a3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

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