Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Optimization]Fix the issue that clusters are not automatically deleted in app mode #3374

Merged
merged 2 commits into from
Apr 10, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Spotless Apply
  • Loading branch information
gaoyan1998 authored and github-actions[bot] committed Apr 10, 2024
commit 698fa5fb077068573d1bb2a1a6aeaa0293944faa
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,9 @@ public static void monitorFlinkTask(JobClient jobClient, int taskId) {
*/
private static void sendHook(int taskId, String jobId, int reTryCount) {
String dinkyAddr = SystemConfiguration.getInstances().getDinkyAddr().getValue();
String url =
StrFormatter.format("{}/api/jobInstance/hookJobDone?taskId={}&jobId={}", dinkyAddr, taskId, jobId);
String url = StrFormatter.format("{}/api/jobInstance/hookJobDone?taskId={}&jobId={}", dinkyAddr, taskId, jobId);
try {
String resultStr = HttpUtil.get(url,5000);
String resultStr = HttpUtil.get(url, 5000);
// TODO 这里应该使用Result实体类,但是Result.class不在comm里,迁移改动太大,暂时不搞
String code = JsonUtils.parseObject(resultStr).get("code").toString();
if (!"0".equals(code)) {
Expand All @@ -118,7 +117,12 @@ private static void sendHook(int taskId, String jobId, int reTryCount) {
}
} catch (Exception e) {
if (reTryCount < 10) {
log.error("send hook failed,retry later,url:{}, taskId:{},jobId:{},{}",url, taskId, jobId, e.getMessage());
log.error(
"send hook failed,retry later,url:{}, taskId:{},jobId:{},{}",
url,
taskId,
jobId,
e.getMessage());
try {
Thread.sleep(1000);
} catch (InterruptedException ex) {
Expand Down
Loading