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

Expand connection retry logic #69

Merged
merged 22 commits into from
Oct 31, 2023
Merged

Conversation

araghukas
Copy link
Contributor

@araghukas araghukas commented Oct 21, 2023

Some changes to make the executor more robust.

  • Generalizes the _client_connect() method a bit, so errors other than ConnectionRefusedError can be caught.
  • Moves the exec script into a separate file.

(Also addresses issue #61 and covers PR #62 -- both are resolved/included here)

  • I have added the tests to cover my changes.
  • I have updated the documentation, VERSION, and CHANGELOG accordingly.
  • I have read the CONTRIBUTING document.

@araghukas araghukas marked this pull request as draft October 21, 2023 03:53
@codecov
Copy link

codecov bot commented Oct 21, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (10f867e) 68.39% compared to head (eb53609) 73.01%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop      #69      +/-   ##
===========================================
+ Coverage    68.39%   73.01%   +4.62%     
===========================================
  Files            2        2              
  Lines          174      189      +15     
===========================================
+ Hits           119      138      +19     
+ Misses          55       51       -4     
Files Coverage Δ
covalent_ssh_plugin/ssh.py 72.87% <100.00%> (+4.66%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@araghukas araghukas changed the title Retry connect generalize Expand connection retry logic Oct 21, 2023
@araghukas araghukas marked this pull request as ready for review October 21, 2023 15:24
Copy link
Member

@kessler-frost kessler-frost left a comment

Choose a reason for hiding this comment

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

Minor changes requested, pretty much good to go otherwise.

covalent_ssh_plugin/ssh.py Outdated Show resolved Hide resolved
covalent_ssh_plugin/ssh.py Show resolved Hide resolved
@kessler-frost kessler-frost merged commit 6a8d8d7 into develop Oct 31, 2023
14 checks passed
@kessler-frost kessler-frost deleted the retry-connect-generalize branch October 31, 2023 17:56
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