Skip to content

Commit

Permalink
#758 优化立即执行的错误提示信息
Browse files Browse the repository at this point in the history
  • Loading branch information
RolfHeG authored and rolf.he committed Jul 29, 2021
1 parent f17b54b commit 9b95189
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2696,7 +2696,8 @@ public void runAtOnce(String namespace, String jobName) throws SaturnJobConsoleE
JobStatus jobStatus = getJobStatus(namespace, jobName);
if (!JobStatus.READY.equals(jobStatus)) {
throw new SaturnJobConsoleException(ERROR_CODE_BAD_REQUEST,
String.format("该作业(%s)不处于READY状态,不能立即执行", jobName));
String.format("该作业(%s)不处于READY状态,不能立即执行。如executor已启动,可能作业初始化失败,"
+ "请排查错误日志:/apps/logs/*/*/saturn-job-executor-error.log", jobName));
}
List<JobServerStatus> jobServersStatus = getJobServersStatus(namespace, jobName);
if (jobServersStatus != null && !jobServersStatus.isEmpty()) {
Expand All @@ -2715,11 +2716,13 @@ public void runAtOnce(String namespace, String jobName) throws SaturnJobConsoleE
}
}
if (!hasOnlineExecutor) {
throw new SaturnJobConsoleException(ERROR_CODE_BAD_REQUEST, "没有ONLINE的executor,不能立即执行");
throw new SaturnJobConsoleException(ERROR_CODE_BAD_REQUEST, "没有ONLINE的executor,不能立即执行。"
+ "如executor已启动,可能作业初始化失败,请排查错误日志:/apps/logs/*/*/saturn-job-executor-error.log");
}
} else {
throw new SaturnJobConsoleException(ERROR_CODE_BAD_REQUEST,
String.format("没有executor接管该作业(%s),不能立即执行", jobName));
String.format("没有executor接管该作业(%s),不能立即执行。如executor已启动,可能作业初始化失败,"
+ "请排查错误日志:/apps/logs/*/*/saturn-job-executor-error.log", jobName));
}
}

Expand Down

0 comments on commit 9b95189

Please sign in to comment.