tillrohrmann commented on a change in pull request #11879:
URL: https://github.com/apache/flink/pull/11879#discussion_r414399874



##########
File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/webmonitor/WebMonitorEndpoint.java
##########
@@ -725,13 +731,28 @@ public WebMonitorEndpoint(
        @Override
        public void startInternal() throws Exception {
                leaderElectionService.start(this);
+               startExecutionGraphCacheCleanupTask();
+
                if (hasWebUI) {
                        log.info("Web frontend listening at {}.", 
getRestBaseUrl());
                }
        }
 
+       private void startExecutionGraphCacheCleanupTask() {
+               final long cleanupInterval = 2 * 
restConfiguration.getRefreshInterval();

Review comment:
       The idea was that the cleanup does not have to be as aggressive as the 
refresh interval. Any other multiple of `getRefreshInterval` would have done 
the same job I guess.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to