Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AK1000: do not call IWithTimers.Schedule inside PreRestart #84

Closed
Aaronontheweb opened this issue Mar 13, 2024 · 1 comment · Fixed by #85 · May be fixed by #86
Closed

AK1000: do not call IWithTimers.Schedule inside PreRestart #84

Aaronontheweb opened this issue Mar 13, 2024 · 1 comment · Fixed by #85 · May be fixed by #86
Labels
AK1000 Actor design rules.

Comments

@Aaronontheweb
Copy link
Member

Calling any of the IWithTimers.ScheduleXXX methods will not work inside PreRestart because those timers will immediately be cancelled when the actor restarts, by design. If an actor wants to schedule a message to itself between restarts it should do that using the older methods.

@Aaronontheweb
Copy link
Member Author

Actually, instead of using the old scheduler methods suggest that the user migrate these calls to PostRestart instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AK1000 Actor design rules.
Projects
None yet
1 participant