asyncmd.slurm#
This module contains the implementation of the classes to interact with Slurm.
The SlurmClusterMediator is a singleton class (handling all sacct calls in a coordinated fashion) for all SlurmProcess instances. The SlurmProcess is a drop-in replacement for asyncio.subprocess.Subprocess and in this spirit this module also contains the function create_slurmprocess_submit, which similarly to asyncio.create_subprocess_exec, creates a SlurmProcess and directly submits the job. Finally this module contains two functions to set the configuration of this module, set_all_slurm_settings and set_slurm_settings.
Functions
|
Create and submit a SlurmProcess. |
|
(Re) initialize all settings relevant for SLURM job control. |
|
Set single or multiple settings relevant for SLURM job control. |
Classes
|
Singleton class to be used by all SlurmProcess for sacct/sinfo calls. |
|
Generic wrapper around SLURM submissions. |
Exceptions
|
Error raised when something goes wrong canceling a SLURM job. |
|
Generic error superclass for all SLURM errors. |
|
Error raised when something goes wrong submitting a SLURM job. |