sureshanaparti commented on code in PR #10417:
URL: https://github.com/apache/cloudstack/pull/10417#discussion_r1987146975


##########
engine/orchestration/src/main/java/com/cloud/agent/manager/AgentManagerImpl.java:
##########
@@ -388,6 +405,11 @@ public void onManagementServerCancelMaintenance() {
             _monitorExecutor = new ScheduledThreadPoolExecutor(1, new 
NamedThreadFactory("AgentMonitor"));
             _monitorExecutor.scheduleWithFixedDelay(new MonitorTask(), 
mgmtServiceConf.getPingInterval(), mgmtServiceConf.getPingInterval(), 
TimeUnit.SECONDS);
         }
+        if (newAgentConnectionsMonitor.isShutdown()) {
+            final int cleanupTimeInSecs = Wait.value();
+            newAgentConnectionsMonitor = Executors.newScheduledThreadPool(1, 
new NamedThreadFactory("NewAgentConnectionsMonitor"));
+            newAgentConnectionsMonitor.scheduleAtFixedRate(new 
AgentNewConnectionsMonitorTask(), cleanupTimeInSecs, cleanupTimeInSecs, 
TimeUnit.SECONDS);
+        }

Review Comment:
   done



-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org

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

Reply via email to