Skip to content

Commit

Permalink
Fix flink getJobStatus bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ChengJie1053 committed Dec 13, 2023
1 parent d4dc8af commit d914fbd
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,15 @@ public ClusterDescriptorAdapter(ExecutionContext executionContext) {

/** Returns the status of the flink job. */
public JobStatus getJobStatus() throws JobExecutionException {
if (jobId == null) {
try {
LOG.info("flink getJobStatus jobId is null,sleep three seconds");
Thread.sleep(3000);
} catch (InterruptedException e) {

}
}
LOG.info("flink getJobStatus jobId:{}", jobId);
if (jobId == null) {
throw new JobExecutionException(NO_JOB_SUBMITTED.getErrorDesc());
}
Expand Down

0 comments on commit d914fbd

Please sign in to comment.