Skip to content

Commit

Permalink
Optimized the printing of K8S logs (#3842)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaoyan1998 authored Sep 27, 2024
1 parent 7abe338 commit dacbb56
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,12 @@ public KubernetesResult waitForJmAndJobStart(
try (ClusterClient<String> client = clusterClient.getClusterClient()) {
logger.info("Start get job list ....");
Collection<JobStatusMessage> jobList = client.listJobs().get(15, TimeUnit.SECONDS);
logger.info("Get K8S Job list: {}", jobList);
if (jobList == null) {
logger.error("Get job list is failed, Please check your Network !!");
continue;
} else {
logger.info("Get K8S Job list: {}", jobList);
}
if (jobList.isEmpty()) {
logger.error("Get job is empty, will be reconnect later....");
continue;
Expand Down

0 comments on commit dacbb56

Please sign in to comment.