score:0

When/if the actor is stopped/restarted your scheduled message send will keep sending messages, since the actor is no longer available the actorRef that it got when you created the scheduled send will point to DeadLetters.

If you want to avoid getting messages sent to DeadLetter during shutdown you can add lifecycle hooks by overriding postStop() and preRestart(...) in your actor and make those cancel the Cancellable that you get back from scheduling events getting sent.

Alternatively you can turn logging of dead letters during shutdown off with config as the log entry says.


Related Query

More Query from same tag