[akka-user] CoordinatedShutdown

2017-05-10 Thread Richard Rodseth
I was considering using CoordinatedShutdown to shutdown Kamon, either with PhaseBeforeActorSystemTerminate or with addJvmShutdownHook But it seems I have to explicitly call run(). Where would I do that? Not using Akka Cluster in this app. Thanks. val system = ActorSystem("test") Coor

Re: [akka-user] CoordinatedShutdown

2017-05-10 Thread Patrik Nordwall
You can call run from anywhere, e.g. instead of calling system.terminate() you can call CoordinatedShutdown(system).run(). By default it will also run automatically when the JVM process exists, e.g. you call java.lang.System.exit or on kill SIGTERM signal. run is idempotent so you can call it con

Re: [akka-user] CoordinatedShutdown

2017-05-11 Thread Richard Rodseth
Thanks. I think I was missing my println output because I launched and stopped in Eclipse. Cntrl-C from the terminal worked fine. On Wed, May 10, 2017 at 10:23 PM, Patrik Nordwall wrote: > You can call run from anywhere, e.g. instead of calling system.terminate() > you can call CoordinatedShutdo