Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dinky
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangpeng
dinky
Commits
1aec0c83
Unverified
Commit
1aec0c83
authored
May 23, 2023
by
andystenhe
Committed by
GitHub
May 23, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix issues 1983 (#1984)
Co-authored-by:
hexiufeng
<
xiufeng.he-a0968@aqara.com
>
parent
ce2c3da2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
KubernetesApplicationGateway.java
...inky/gateway/kubernetes/KubernetesApplicationGateway.java
+15
-0
No files found.
dinky-gateway/src/main/java/org/dinky/gateway/kubernetes/KubernetesApplicationGateway.java
View file @
1aec0c83
...
...
@@ -38,6 +38,9 @@ import org.apache.http.util.TextUtils;
import
java.util.ArrayList
;
import
java.util.Collection
;
import
java.util.List
;
import
java.util.concurrent.ExecutionException
;
import
cn.hutool.core.util.StrUtil
;
/**
* KubernetesApplicationGateway
...
...
@@ -84,7 +87,19 @@ public class KubernetesApplicationGateway extends KubernetesGateway {
while
(
jobStatusMessages
.
size
()
==
0
&&
counts
>
0
)
{
Thread
.
sleep
(
1000
);
counts
--;
try
{
jobStatusMessages
=
clusterClient
.
listJobs
().
get
();
}
catch
(
ExecutionException
e
)
{
if
(
StrUtil
.
contains
(
e
.
getMessage
(),
"Number of retries has been exhausted."
))
{
// refresh the job manager ip address
clusterClient
.
close
();
clusterClient
=
clusterClientProvider
.
getClusterClient
();
}
else
{
LogUtil
.
getError
(
e
);
throw
e
;
}
}
if
(
jobStatusMessages
.
size
()
>
0
)
{
break
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment