Skip to content

Commit

Permalink
FlintStreamingJobCleanerTask Implementation (#2574) (#2575)
Browse files Browse the repository at this point in the history
(cherry picked from commit 284a0be)

Signed-off-by: Vamsi Manohar <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent cf201df commit a436fbb
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,18 @@ public void beforeStop() {
}
});
}
initializeStreamingJobHouseKeeperCron();

if (flintStreamingJobHouseKeeperCron == null) {
initializeStreamingJobHouseKeeperCron();
clusterService.addLifecycleListener(
new LifecycleListener() {
@Override
public void beforeStop() {
cancel(flintStreamingJobHouseKeeperCron);
flintStreamingJobHouseKeeperCron = null;
}
});
}
}

private void initializeStreamingJobHouseKeeperCron() {
Expand Down

0 comments on commit a436fbb

Please sign in to comment.