tardis.utilities.executors.sshexecutor module

class tardis.utilities.executors.sshexecutor.SSHExecutor(**parameters)[source]

Bases: tardis.interfaces.executor.Executor

property bounded_connection

Get the current connection with a single reserved session slot

This is a context manager that guards the current SSHClientConnection so that only MaxSessions commands run at once.

property lock

Lock protecting the connection

async run_command(command, stdin_input=None)[source]
async tardis.utilities.executors.sshexecutor.probe_max_session(connection: asyncssh.connection.SSHClientConnection)[source]

Probe the sshd MaxSessions, i.e. the multiplexing limit per connection