idmtools_platform_slurm.slurm_operations.operations_interface module#

Here we implement the SlurmPlatform operations interfaces.

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

class idmtools_platform_slurm.slurm_operations.operations_interface.SlurmOperations(platform: 'SlurmPlatform', platform_type: Type = None)[source]#

Bases: ABC

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