How to restart an linked Actor inside the on_link_died
#93
-
Hello! I'm trying to understand the best approach for managing failing actors while attached to a manager. These actors are responsible for performing various utilities, but they could occasionally fail, and the manager needs to restart them. I looked into the PoolActor, and it suggests using a factory see. Is this the only way available? Thanks a lot! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @jBernavaPrah ! Restarting an actor is as simple as returning None in its |
Beta Was this translation helpful? Give feedback.
Hi @jBernavaPrah !
Restarting an actor is as simple as returning None in its
Actor::on_panic
implementation. By default, actors die when panic, but this behaviour can be overridden by returning None in this method instead