Skip to content

Commit

Permalink
Merge pull request #5 from katlapinka/kasiat/rsync_timeout
Browse files Browse the repository at this point in the history
Improve rsync timeout handling
  • Loading branch information
Deixx authored Sep 4, 2024
2 parents 96a9605 + 2b46a4e commit 0e22f4c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions connection/ssh_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,10 @@ def _rsync(
stderr=subprocess.PIPE,
timeout=timeout.total_seconds(),
)
except Exception as e:
TestRun.LOGGER.exception(
f"Exception occurred during rsync process. "
f"Please check your SSH key-based authentication.\n{e}"
except subprocess.TimeoutExpired as e:
raise TimeoutError(
f"Timeout exception occurred during rsync process. "
f"Please check whether copying big file did not reach command timeout.\n{e}"
)

if completed_process.returncode:
Expand Down

0 comments on commit 0e22f4c

Please sign in to comment.