romtools.hpc.dispatchers.local_dispatcher#
Classes
|
LocalDispatcher is a subclass of BaseDispatcher that implements the core functionality for dispatching ROM workflows on the local machine. |
- class romtools.hpc.dispatchers.local_dispatcher.LocalDispatcher(sampling_directory='hpctools', logger=None)[source]#
Bases:
BaseDispatcherLocalDispatcher is a subclass of BaseDispatcher that implements the core functionality for dispatching ROM workflows on the local machine. It overrides methods to set up directories and execute commands without SSH, making it suitable for local execution.
- Parameters:
sampling_directory (str)
logger (Logger)
- dispatch(cmd, run_directory=None)[source]#
- Returns:
sacct format string of job exit code + linux signal number (always 0 in local) example: ‘0:0’
- Parameters:
cmd (str)
run_directory (str)
- Return type:
- get(remote_path, local_path)[source]#
Local ‘get’ is just a copy from remote_path to local_path.
- Parameters:
remote_path (str)
local_path (str)
- Return type:
None