Skip to content

Commit

Permalink
Possible solution
Browse files Browse the repository at this point in the history
  • Loading branch information
LanderOtto committed Oct 4, 2024
1 parent 077abc6 commit 93f5834
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions streamflow/deployment/connector/ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ async def __aenter__(self) -> asyncssh.SSHClientProcess:
async def __aexit__(self, exc_type, exc_val, exc_tb):
async with self._condition:
if self._selected_context:
await self._selected_context.close()
if self._proc:
await self._proc.__aexit__(exc_type, exc_val, exc_tb)
self._condition.notify_all()
Expand Down
1 change: 1 addition & 0 deletions streamflow/deployment/stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ async def write(self, data: Any):

class StreamWriterWrapper(StreamWrapper):
async def close(self):
self.stream.write_eof()
self.stream.close()
await self.stream.wait_closed()

Expand Down

0 comments on commit 93f5834

Please sign in to comment.