Skip to content

Commit

Permalink
[ZEPPELIN-5638] Add flink job interval check (apache#4427)
Browse files Browse the repository at this point in the history
  • Loading branch information
yaini authored Aug 2, 2022
1 parent 21fd4c2 commit 595556a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ public void addJob(InterpreterContext context, JobClient jobClient) {
return;
}
long checkInterval = Long.parseLong(properties.getProperty("zeppelin.flink.job.check_interval", "1000"));
if (checkInterval < 0) {
LOGGER.warn("The value of checkInterval must be positive {}", checkInterval);
return;
}
FlinkJobProgressPoller thread = new FlinkJobProgressPoller(flinkWebUrl, jobClient.getJobID(), context, checkInterval);
thread.setName("JobProgressPoller-Thread-" + paragraphId);
thread.start();
Expand Down

0 comments on commit 595556a

Please sign in to comment.