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

OnDeactivateAsync not called on silo shutdown #9216

Open
peter-perot opened this issue Nov 5, 2024 · 0 comments
Open

OnDeactivateAsync not called on silo shutdown #9216

peter-perot opened this issue Nov 5, 2024 · 0 comments

Comments

@peter-perot
Copy link
Contributor

We are using Orleans version 7.2.6 and observe the following problem:

When the silo is shut down, grain method OnDeactivateAsync is not called, but only if the grain is marked as a [StatelessWorker] (the same is true when using the attribute with a parameter, e.g. [StatelessWorker(1)]). As soon as I remove the attribute, method OnDeactivateAsync is called as expected.

This behavior is only observed on silo shutdown: when the grain deactivates during activation garbage collection, the method is called correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant