idmtools_platform_slurm.slurm_operations.remote_operations module

Here we implement the SlurmPlatform remote operations.

Copyright 2021, Bill & Melinda Gates Foundation. All rights reserved.

class idmtools_platform_slurm.slurm_operations.remote_operations.RemoteSlurmOperations(platform: 'SlurmPlatform', platform_type: Type = None, hostname: str = None, username: str = None, key_file: str = None, port: int = 22)[source]

Bases: SlurmOperations

hostname: str = None
username: str = None
key_file: str = None
port: int = 22
get_directory(item: IEntity) Path[source]
get_directory_by_id(item_id: str, item_type: ItemType) Path[source]
mk_directory(item: IEntity) None[source]
update_script_mode(script_path: Path | str, mode: int) None[source]
make_command_executable(simulation: Simulation) None[source]
create_batch_file(item: IEntity, **kwargs) None[source]
submit_job(item: Experiment | Simulation, **kwargs) Any[source]
get_simulation_status(sim_id: str) Any[source]
create_file(file_path: str, content: str) None[source]
get_job_id(item_id: str, item_type: ItemType) str[source]
cancel_job(job_id: str) Any[source]
__init__(platform: SlurmPlatform, platform_type: Type = None, hostname: str = None, username: str = None, key_file: str = None, port: int = 22) None