Re: [akka-user] Supervisor help

14 views
Skip to first unread message

√iktor Ҡlang

unread,
Sep 26, 2011, 2:09:24 PM9/26/11
to akka...@googlegroups.com
What version are you using?

Cheers,


On Mon, Sep 26, 2011 at 7:56 PM, Adam <les...@gmail.com> wrote:
Perhaps I'm misunderstanding the documentation, but I'm having problems getting actors that are declared temporary in the SupervisorConfig to restart when they throw an exception.  My understanding is that the only difference between permanent and temporary is that temporary will always shutdown an actor instead of just restarting it, but perhaps I'm missing something.

Here is a quick test project I used to verify that it is not restarting for temporary but it is for permanent: http://pastebin.com/NXeZVSQm

~Adam~

--
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To post to this group, send email to akka...@googlegroups.com.
To unsubscribe from this group, send email to akka-user+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/akka-user?hl=en.



--
Viktor Klang

Akka Tech Lead
Typesafe - Enterprise-Grade Scala from the Experts

Twitter: @viktorklang

Adam

unread,
Sep 26, 2011, 1:56:52 PM9/26/11
to akka...@googlegroups.com

Adam

unread,
Sep 26, 2011, 2:52:41 PM9/26/11
to akka...@googlegroups.com
2011/9/26 √iktor Ҡlang <viktor...@gmail.com>

What version are you using?

Oops sorry I intended to put it in there but it must have slipped my mind: I'm using akka 1.2 / scala 2.9.1

√iktor Ҡlang

unread,
Sep 27, 2011, 4:13:02 AM9/27/11
to akka...@googlegroups.com
On Mon, Sep 26, 2011 at 7:56 PM, Adam <les...@gmail.com> wrote:
Perhaps I'm misunderstanding the documentation, but I'm having problems getting actors that are declared temporary in the SupervisorConfig to restart when they throw an exception.  My understanding is that the only difference between permanent and temporary is that temporary will always shutdown an actor instead of just restarting it, but perhaps I'm missing something.

Here is a quick test project I used to verify that it is not restarting for temporary but it is for permanent: http://pastebin.com/NXeZVSQm

Temporary means that it shouldn't be restarted, but it should be stopped if it fails...

Cheers,

 

~Adam~

--
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To post to this group, send email to akka...@googlegroups.com.
To unsubscribe from this group, send email to akka-user+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/akka-user?hl=en.

Adam

unread,
Sep 27, 2011, 9:57:46 AM9/27/11
to akka...@googlegroups.com
On Mon, Sep 26, 2011 at 7:56 PM, Adam <les...@gmail.com> wrote:

Temporary means that it shouldn't be restarted, but it should be stopped if it fails...

Cheers,


 Oh okay I get it now; I thought the docs just meant that the actor would be shutdown and then restarted (or a new actor created or something) in lieu of calling restart.  Thanks for the clarification.
Reply all
Reply to author
Forward
0 new messages