Skip to content

FIX: Update gRPC API version check and improve exception handling#7278

Merged
Samuelopez-ansys merged 3 commits intomainfrom
fix/release_extension
Feb 18, 2026
Merged

FIX: Update gRPC API version check and improve exception handling#7278
Samuelopez-ansys merged 3 commits intomainfrom
fix/release_extension

Conversation

@Samuelopez-ansys
Copy link
Copy Markdown
Member

Description

This pull request updates the logic and documentation around enabling the gRPC API for the EDB module, making it available only for AEDT version 2026 R2 and later (previously 2026 R1). It also introduces improved exception handling and ensures consistent behavior regarding resource release on exceptions, particularly in console and Jupyter environments.

gRPC API Version Requirement Updates:

  • Updated documentation in pyaedt_settings.yaml and settings.rst to specify that the gRPC API for EDB is enabled by default only for AEDT version 2026 R2 or later, instead of 2026 R1.

  • Changed version checks in edb.py so that gRPC is enabled only if AEDT version is greater than 2026.1, aligning code behavior with the new documentation.

Exception Handling and Resource Management:

  • Modified raise_exception_or_return_false in general_methods.py to always use the close_on_exit attribute when releasing or closing desktops, improving reliability and consistency in cleanup logic.
  • Set settings.release_on_exception = False in both console_setup.py and the Jupyter notebook template to ensure that exceptions in these environments do not trigger resource release, preventing unintended closures.

Issue linked

Please mention the issue number or describe the problem this pull request addresses.

Checklist

  • I have tested my changes locally.
  • I have added necessary documentation or updated existing documentation.
  • I have followed the coding style guidelines of this project.
  • I have added appropriate tests (unit, integration, system).
  • I have reviewed my changes before submitting this pull request.
  • I have linked the issue or issues that are solved by the PR if any.
  • I have agreed with the Contributor License Agreement (CLA).

@Samuelopez-ansys Samuelopez-ansys requested a review from a team as a code owner February 18, 2026 09:00
@github-actions github-actions bot added extensions bug Something isn't working labels Feb 18, 2026
SMoraisAnsys
SMoraisAnsys previously approved these changes Feb 18, 2026
Copy link
Copy Markdown
Collaborator

@SMoraisAnsys SMoraisAnsys left a comment

Choose a reason for hiding this comment

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

LGTM, nice catches

Comment thread doc/source/Resources/pyaedt_settings.yaml Outdated
@Samuelopez-ansys Samuelopez-ansys merged commit 1ef31bf into main Feb 18, 2026
74 of 75 checks passed
@Samuelopez-ansys Samuelopez-ansys deleted the fix/release_extension branch February 18, 2026 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working extensions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants