Skip to content

Add optional heartbeat param to run_cmd to check/handle disconnection during long running commands #238

@acohen716

Description

@acohen716

We've noticed that without specifying a timeout to run_cmd, if a remote host is disconnected (due to host network failure, reboot etc), the command never returns and must be force quit.

I propose adding an optional parameter (ex. heartbeat) that if true, will simply check here whether self.is_active and if not raise a ConnectionError.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions