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

conn: add support for timeout #97

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pbrezina
Copy link
Contributor

No description provided.

@pbrezina pbrezina marked this pull request as draft January 24, 2025 15:28
@pbrezina pbrezina force-pushed the timeout branch 3 times, most recently from c173777 to 4fa9287 Compare January 28, 2025 13:28
@pbrezina pbrezina marked this pull request as ready for review January 28, 2025 13:29
Default timeout is 300 seconds. This can be changed using timeout
parameter of:

* conn.run(timeout=xy)
* conn.exec(timeout=xy)
* process.wait(timout=xy)

Or in mhc.yaml by setting host.conn.timeout.
Comment on lines +500 to +503
if self.blocking_call and self.log_level != ProcessLogLevel.Error:
self._log_result_sync(result)
else:
self._log_result_async(result)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Checking self.log_level here seems redundant (it is checked in _log_result...) and makes the condition less readable.

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.

3 participants