Skip to content

properly closing maestro sessions #2391

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

felipeduartea
Copy link
Contributor

@felipeduartea felipeduartea commented Mar 22, 2025

Proposed changes

Noticed that the close function in maestroSessionManager wasn't really closing sessions. That happened because the SessionStore creates the session again with the heartbeat.

To handle this correctly we need to cancel the hearbeat before closing the session

Testing

Issues fixed

@@ -70,13 +71,16 @@ object MaestroSessionManager {
)
val sessionId = UUID.randomUUID().toString()

val isHeartbeatActive = AtomicBoolean(true) //Controlling heartbeat with an atomic bool
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not really sure about wether this is a good way to handle this, so feedbacks appreciated

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.

1 participant