romtools.hpc.components.slurm_job_manager#
SLURM job submission and monitoring for the dispatchers.
Classes
|
Generates and submits SLURM scripts, then polls the job until it finishes. |
- class romtools.hpc.components.slurm_job_manager.SlurmJobManager(run_cmd, *, files, config=None, logger=None, campaign_directory=None)[source]#
Bases:
CampaignComponentGenerates and submits SLURM scripts, then polls the job until it finishes.
Serves both dispatchers, since sbatch/squeue/sacct are the same wherever they are issued.
- Parameters:
run_cmd (Callable[[str], Result]) – Runs a shell command where the scheduler lives and returns a Result. Connection.run for a remote host, run_local_bash for this one.
campaign_directory (str) – The directory jobs run in when no run_directory is given
files (BaseFileManager) – The file manager for the machine the job runs on
config (dict)
logger (Logger)