[Improvement-14146][K8S Task] print complete error logs in task log file (#14147)

This commit is contained in:
Aaron Wang 2023-05-27 17:39:03 +08:00 committed by GitHub
parent 1011852ab2
commit 9e0991145e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -48,8 +48,9 @@ public abstract class AbstractK8sTask extends AbstractRemoteTask {
setExitStatusCode(response.getExitStatusCode());
setAppIds(response.getAppIds());
} catch (Exception e) {
log.error("k8s task submit failed with error", e);
exitStatusCode = -1;
throw new TaskException("k8s process failure", e);
throw new TaskException("Execute k8s task error", e);
}
}