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

Finalize Actors when Microgrid Finalizes #237

Merged
merged 3 commits into from
Sep 23, 2024
Merged

Conversation

marvin-steinke
Copy link
Contributor

In Microgrid.finalize() we already call finalize() for all controllers but not for actors. This means that ActorBase.finalize() is never called.

Use Case: When using an actor with a CollectorSignal child, I want its thread to terminate with the simulation. Currently, the thread keeps on running until the program ends.

@marvin-steinke marvin-steinke merged commit 7eee494 into main Sep 23, 2024
4 checks passed
@marvin-steinke marvin-steinke deleted the finalize-actors branch September 23, 2024 11:17
@birnbaum birnbaum changed the title Finalize Actos when Microgrid Finalizes Finalize Actors when Microgrid Finalizes Nov 17, 2024
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

Successfully merging this pull request may close these issues.

2 participants