Skip to content

Is there a way to have an actor process its queue without calling shutdown or an ask to the actor? #106

Answered by jodal
tylerhjones asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for providing a minimal runnable example! That makes it so much easier to help you :-)

I read through your example a few days ago but didn't immediately understand why it didn't work, so I didn't respond right away. When I ran each part here step by step in a Python REPL today, I noticed that print(pykka.ActorRegistry.get_all()) returned alive actors before the broadcast, but the same line executed again after the broadcast showed an empty list, e.g. all actors where dead.

To figure out what happened inside the actors that dies, I simply turned on basic debug logging, as recommended in the docs:

+import logging
+logging.basicConfig(level=logging.DEBUG)
+
 import pykka
 import time

W…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jodal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants