You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's possible I've missed this, but I haven't been able to figure out how a supervised actor (one that is spawned by another) might be restarted, in the event of a failure case.
The text was updated successfully, but these errors were encountered:
There are currently only 2 ways actors will be restarted/re-attempted to be started automatically in the event of a failure:
Sharded actors will be automatically restarted on a healthy node, in the event of a shard or node failure
Persistent actors that are failing to recover can be configured to keep re-trying, by using the Retry failure policy.
For cases not covered, I think it's difficult to define what is an "actor failure", which is easy with runtimes like Akka/Akka.NET since exceptions exist, and can be caught.
When an actor that was spawned by a parent actor stops, a notification is sent to the supervising actor, for which the handling can be overridden via the on_child_stopped function - inside there you could implement custom logic to re-start any actors that were stopped.
It's possible I've missed this, but I haven't been able to figure out how a supervised actor (one that is spawned by another) might be restarted, in the event of a failure case.
The text was updated successfully, but these errors were encountered: