Merge pull request #1627 from metamx/fix-realtime-tasks

explicitly call lifecycle stop
This commit is contained in:
Fangjin Yang 2015-08-14 08:17:00 -07:00
commit 8d6fe021e3
1 changed files with 2 additions and 0 deletions

View File

@ -223,6 +223,8 @@ public class CliPeon extends GuiceRunnable
)
);
injector.getInstance(ExecutorLifecycle.class).join();
// Explicitly call lifecycle stop, dont rely on shutdown hook.
lifecycle.stop();
}
catch (Throwable t) {
log.error(t, "Error when starting up. Failing.");