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

Properly shutdown robot gateway after execution #125

Merged
merged 2 commits into from
Jun 24, 2024

Conversation

anitacaron
Copy link
Collaborator

Fixes #123

Use finally block for cleanup actions like shutting down the gateway.
This ensures that the cleanup code runs regardless of whether an
exception was raised.

use `finally` block for cleanup actions like shutting down the gateway.
This ensures that the cleanup code runs regardless of whether an
exception was raised.
@anitacaron anitacaron self-assigned this Jun 21, 2024
@anitacaron anitacaron requested a review from matentzn June 21, 2024 15:03
Copy link
Contributor

@matentzn matentzn left a comment

Choose a reason for hiding this comment

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

This is out of my expertise. @jsstevenson ?

@anitacaron anitacaron requested a review from jsstevenson June 22, 2024 14:50
Copy link
Contributor

@jsstevenson jsstevenson left a comment

Choose a reason for hiding this comment

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

not exactly in my realm of expertise either, but seems reasonable

Need to add the `raise_exception` parameter to the `gateway.shutdown`
method to allow the caller to specify if an exception should be raised
in case of error. The default value is `False`.
@anitacaron anitacaron requested a review from jsstevenson June 24, 2024 09:44
@anitacaron anitacaron merged commit e39cde9 into master Jun 24, 2024
1 check passed
@anitacaron anitacaron deleted the anitacaron/issue123 branch June 27, 2024 15:36
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.

Properly shutdown the Java Gateway
3 participants