scmd¶
Module containing functions wrapping Slurm commands
-
pyssub.scmd.
failed
(jobs)¶ Failed jobs
Check which of the given jobs have failed, meaning that their states are not equal to
COMPLETED
.Parameters: jobs (dict(str, int)) – Mapping of job names to job IDs Returns: Mapping of names to IDs of the jobs that have failed Return type: dict(str, int)
-
pyssub.scmd.
numjobs
(user, partition=None)¶ Number of queuing jobs
Check the number of queuing jobs for the given user and partition.
Parameters: - user (str) – User name or ID
- partition (str, optional) – Partition name
Returns: Number of queuing jobs
Return type: int
-
pyssub.scmd.
submit
(script, partition=None)¶ Submit Slurm batch script.
Parameters: - script (SBatchScript) – Slurm batch script
- partition (str, optional) – Partition for resource allocation
Returns: Job ID
Return type: int