Browse Source

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

3.2.0-release
Aaron Wang 2 years ago committed by GitHub
parent
commit
9e0991145e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/k8s/AbstractK8sTask.java

3
dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/k8s/AbstractK8sTask.java

@ -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);
}
}

Loading…
Cancel
Save