<BUG>configCheckerFuture = executorService.scheduleAtFixedRate(configChecker, 0, configuration.getConfigCheckIntervalSecs(), TimeUnit.SECONDS);lifecycleHelper.writeStateFileIfConfigured();</BUG><CONTEXT>LOG.info("Adding to known-agents...");knownAgentsDatastore.addKnownAgent(configuration.getLoadBalancerConfiguration().getName(), BaragonKnownAgentMetadata.fromAgentMetadata(baragonAgentMetadata, System.currentTimeMillis()));LOG.info("Starting agent heartbeat...");requestWorkerFuture = executorService.scheduleAtFixedRate(agentHeartbeatWorker, 0, configuration.getHeartbeatIntervalSeconds(), TimeUnit.SECONDS);LOG.info("Starting config checker");<extra_id_0>agentState.set(BaragonAgentState.ACCEPTING);}@Override</CONTEXT>
LOG.info("Adding resync listener");curatorFramework.getConnectionStateListenable().addListener(resyncListener);lifecycleHelper.writeStateFileIfConfigured();