Re: [akka-user] Cancel a Scheduler by terminating its ActorSystem

2016-04-07 Thread Patrik Nordwall
Thanks :) tors 7 apr. 2016 kl. 17:26 skrev Viktor Klang : > https://github.com/akka/akka/issues/20256 > > On Thu, Apr 7, 2016 at 5:18 PM, Patrik Nordwall > wrote: > >> I agree, we have had that conclusion several times, but never fixed it. >> An issue is a good start, please. >> >> tors 7 apr. 2

Re: [akka-user] Cancel a Scheduler by terminating its ActorSystem

2016-04-07 Thread Viktor Klang
https://github.com/akka/akka/issues/20256 On Thu, Apr 7, 2016 at 5:18 PM, Patrik Nordwall wrote: > I agree, we have had that conclusion several times, but never fixed it. An > issue is a good start, please. > > tors 7 apr. 2016 kl. 16:20 skrev Viktor Klang : > >> Hmmm, since that mechanism is co

Re: [akka-user] Cancel a Scheduler by terminating its ActorSystem

2016-04-07 Thread Patrik Nordwall
I agree, we have had that conclusion several times, but never fixed it. An issue is a good start, please. tors 7 apr. 2016 kl. 16:20 skrev Viktor Klang : > Hmmm, since that mechanism is completely internal, perhaps we could solve > that discretely and remove that run-all-on-shutdown. > > On Thu,

Re: [akka-user] Cancel a Scheduler by terminating its ActorSystem

2016-04-07 Thread Viktor Klang
Hmmm, since that mechanism is completely internal, perhaps we could solve that discretely and remove that run-all-on-shutdown. On Thu, Apr 7, 2016 at 4:17 PM, Patrik Nordwall wrote: > > > On Thu, Apr 7, 2016 at 12:46 PM, Viktor Klang > wrote: > >> That is surprising, indeed. >> What was the cau

Re: [akka-user] Cancel a Scheduler by terminating its ActorSystem

2016-04-07 Thread Patrik Nordwall
On Thu, Apr 7, 2016 at 12:46 PM, Viktor Klang wrote: > That is surprising, indeed. > What was the cause for that, again? > The original reason is for shutting down the dispatchers, I think. > > On Thu, Apr 7, 2016 at 12:39 PM, Patrik Nordwall < > patrik.nordw...@gmail.com> wrote: > >> One gotc

Re: [akka-user] Cancel a Scheduler by terminating its ActorSystem

2016-04-07 Thread Viktor Klang
That is surprising, indeed. What was the cause for that, again? On Thu, Apr 7, 2016 at 12:39 PM, Patrik Nordwall wrote: > One gotcha with shutting down the actor system is that scheduled tasks > will run (immediately) when the scheduler is shutdown. > > /Patrik > > tors 7 apr. 2016 kl. 12:14 skr

Re: [akka-user] Cancel a Scheduler by terminating its ActorSystem

2016-04-07 Thread Patrik Nordwall
One gotcha with shutting down the actor system is that scheduled tasks will run (immediately) when the scheduler is shutdown. /Patrik tors 7 apr. 2016 kl. 12:14 skrev Viktor Klang : > Or rather, if scheduled events are not cancelled hen they are no longer > needed, it will be a memory leak. Memo

Re: [akka-user] Cancel a Scheduler by terminating its ActorSystem

2016-04-07 Thread Viktor Klang
Or rather, if scheduled events are not cancelled hen they are no longer needed, it will be a memory leak. Memory leaks are bad no matter if you shut the actor system down or not :) But to answer the question: shutting down the ActorSystem shuts down the Scheduler. On Thu, Apr 7, 2016 at 12:11 PM,

Re: [akka-user] Cancel a Scheduler by terminating its ActorSystem

2016-04-07 Thread Konrad Malawski
Yes, although that's a bit like asking "can I stop a car by driving it into a tree?" :-) In general you should cancel scheduled events (schedule() returns a cancellable), instead --  Cheers, Konrad 'ktoso’ Malawski Akka @ Lightbend On 7 April 2016 at 12:09:59, Kayode Odeyemi (drey...@gmail.com

[akka-user] Cancel a Scheduler by terminating its ActorSystem

2016-04-07 Thread Kayode Odeyemi
Can I cancel a Scheduler by terminating its ActorSystem? -- >> Read the docs: http://akka.io/docs/ >> Check the FAQ: >> http://doc.akka.io/docs/akka/current/additional/faq.html >> Search the archives: https://groups.google.com/group/akka-user ---