Github user haoch commented on a diff in the pull request:
https://github.com/apache/incubator-eagle/pull/412#discussion_r77814146
--- Diff:
eagle-server/src/main/java/org/apache/eagle/server/ServerApplication.java ---
@@ -69,5 +78,11 @@ public void run(ServerConfig configuration, Environment
environment) throws Exce
// context listener
environment.servlets().addServletListeners(new
CoordinatorListener());
+
+ // run application status service in background
Guice.createInjector(new CommonGuiceModule(),new ApplicationGuiceModule(), new
MemoryMetadataStore());
+ Injector injector = guiceBundle.getInjector();
+ ApplicationStatusUpdateService applicationStatusUpdateService =
injector.getInstance(ApplicationStatusUpdateService.class);
+ Managed updateAppStatusTask = new
ApplicationTask(applicationStatusUpdateService);
+ environment.lifecycle().manage(updateAppStatusTask);
--- End diff --
Correct approach to run status check service as a managed task!
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---