idmtools_platform_slurm.slurm_operations.bridged_operations module#
Here we implement the SlurmPlatform bridged operations.
Copyright 2021, Bill & Melinda Gates Foundation. All rights reserved.
- idmtools_platform_slurm.slurm_operations.bridged_operations.create_bridged_job(working_directory, bridged_jobs_directory, results_directory, cleanup_results: bool = True) None [source]#
Creates a bridged job.
- Parameters:
working_directory – Work Directory
bridged_jobs_directory – Jobs Directory
results_directory – Results directory
cleanup_results – Should we clean up results file
- Returns:
None
- idmtools_platform_slurm.slurm_operations.bridged_operations.cancel_bridged_job(job_ids: str | List[str], bridged_jobs_directory, results_directory, cleanup_results: bool = True) Any [source]#
Cancel a bridged job.
- Parameters:
job_ids – slurm job list
bridged_jobs_directory – Work Directory
results_directory – Results directory
cleanup_results – Should we clean up results file
- Returns:
Result from scancel job
- class idmtools_platform_slurm.slurm_operations.bridged_operations.BridgedLocalSlurmOperations(platform: 'SlurmPlatform', platform_type: Type = None)[source]#
Bases:
LocalSlurmOperations
- submit_job(item: Experiment | Simulation, **kwargs) None [source]#
Submit a Slurm job. :param item: idmtools Experiment or Simulation :param kwargs: keyword arguments used to expand functionality
- Returns:
None
- cancel_job(job_ids: str | List[str], **kwargs) Any [source]#
Cancel slurm job generated from the item. :param job_ids: Slurm job id :param kwargs: keyword arguments used to expand functionality
- Returns:
Any
- __init__(platform: SlurmPlatform, platform_type: Type = None) None #
- platform: SlurmPlatform#