Skip to content

Commit

Permalink
Optimize Code
Browse files Browse the repository at this point in the history
  • Loading branch information
peacewong committed Aug 29, 2023
1 parent 77472ff commit 79623d1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,7 @@ private LinkisOperResultAdapter waitJobComplete(String user, String jobId)
// query progress
try {
jobInfoResult = oper.queryJobInfo(user, jobId);
oper.queryJobStatus(
jobInfoResult.getUser(), jobInfoResult.getJobID(), jobInfoResult.getStrongerExecId());
oper.queryJobStatus(user, jobId, jobInfoResult.getStrongerExecId());
} catch (Exception e) {
logger.warn("", e);
retryCnt++;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -359,14 +359,11 @@ public Message executeECMOperation(HttpServletRequest req, @RequestBody JsonNode
"Fail to process the operation parameters, cased by "
+ ExceptionUtils.getRootCauseMessage(e));
}
if (parameters.containsKey("engineConnInstance")) {
return executeECMOperation(
ecmNode,
parameters.get("engineConnInstance").toString(),
new ECMOperateRequest(userName, parameters));
} else {
return executeECMOperation(ecmNode, "", new ECMOperateRequest(userName, parameters));
}

return executeECMOperation(
ecmNode,
parameters.getOrDefault("engineConnInstance", "").toString(),
new ECMOperateRequest(userName, parameters));
}

@ApiOperation(value = "openEngineLog", notes = "open Engine log", response = Message.class)
Expand Down

0 comments on commit 79623d1

Please sign in to comment.