ansys / pyrocky

A Python API for Ansys Rocky
https://rocky.docs.pyansys.com/
MIT License
4 stars 1 forks source link

Terminate existing session when attempting to launch Rocky #105

Closed viniciusdaroz closed 2 months ago

viniciusdaroz commented 2 months ago

When a Rocky session hangs, which can happen due to multiple reasons, pyRocky can raise an error because the server_port is already in use. An additional argument called terminate_existing_session was included under Rocky's launcher to force the existing session to close before launching a new one using the same server_port. This gives the user the flexibility to avoid killing the Rocky process or manually connecting to the existing session to close it.

103

codecov[bot] commented 2 months ago

Codecov Report

Attention: Patch coverage is 28.57143% with 5 lines in your changes missing coverage. Please review.

Project coverage is 92.52%. Comparing base (a0e6454) to head (ef50da7). Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/ansys/rocky/core/launcher.py 28.57% 5 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #105 +/- ## ========================================== - Coverage 94.71% 92.52% -2.19% ========================================== Files 7 7 Lines 208 214 +6 ========================================== + Hits 197 198 +1 - Misses 11 16 +5 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.