dml_util.runners.remote#

Remote execution runners.

This module provides runners for executing tasks in remote environments, such as SSH. These runners can execute commands on remote machines with specific configurations.

Classes

SshRunner(config, input)

Runs a command over SSH.

class dml_util.runners.remote.SshRunner(config, input)[source]#

Bases: RunnerBase

Runs a command over SSH.

Parameters:
classmethod funkify(host, sub, flags=None, env_files=None)[source]#
proc_script()[source]#
Return type:

str

run()[source]#

Run the task and return the result.

This method handles acquiring the job lock, updating the state, and returning the response and message. The main logic of the task is implemented in the update method, which must be defined by subclasses.