lst_auto_rta.Auto_RTA.srun_cmd_worker_nodes¶
- lst_auto_rta.Auto_RTA.srun_cmd_worker_nodes(connection_jobs_info: List[ConnectionJobInfo], cmd: str, additional_slurm_params: List[str] | None = None, error_level=50)[source]¶
Submit a slurm command with srun on all worker nodes in connection_jobs_info
- Parameters:
connection_jobs_info (List[ConnectionJobInfo]) – List of connection job information: cmd will be executed for each node entry in this list.
cmd (str) – Command to run with srun.
additional_slurm_params (List[str] or None) – List of additional slurm jobs parameters, separated between args and values, for instance [”–mem”, “20G”] Optionnal, default is None.
- Returns:
List of completed processes.
- Return type:
List[subprocess.CompletedProcess]