ssh_shell_process
drunc.processes.ssh_shell_process
Runtime model for a process launched through the SSH shell lifetime manager.
Classes
RunningSSHProcess(process, hostname, user)
Holds runtime state for a process launched via SSH shell.
Initialise runtime state for a managed SSH-launched process.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
process
|
RunningCommand
|
Background SSH command handle returned by |
required |
hostname
|
str
|
Target host used to launch and monitor the remote process. |
required |
user
|
str
|
Remote user used for SSH operations. |
required |
Source code in drunc/processes/ssh_shell_process.py
Methods:
finalise_exit(default_source, raw_exit_code)
Consume the pending exit source, build an ExitStatus, and store it.
Source code in drunc/processes/ssh_shell_process.py
finalise_exit_once(default_source, raw_exit_code)
Set exit status once across concurrent watcher threads.
Source code in drunc/processes/ssh_shell_process.py
kill_client(signal_name='KILL')
Send a signal to the local SSH client process group.