pylib.scheduler package

Submodules

pylib.scheduler.sbatch module

exception pylib.scheduler.sbatch.ProfileError

Bases: exceptions.Exception

pylib.scheduler.sbatch.profile(jobid=None)

Profile a sbatch job

Parameters:jobid (str) – Sbatch Job ID
Returns:dict of JobID,NTasks,nodelist,MaxRSS,MaxVMSize,AveRSS,AveVMSize
Return type:dict
pylib.scheduler.sbatch.submit(command, stdout=None, stderr=None, kill=False, **kwargs)

Submit a command through sbatch.

Parameters:
  • command (list) – Command
  • queue (str) – Partition e.g., “ncf”
  • mem (float) – Required memory (MB)
  • tmp (float) – Temporary storage required (MB)
  • cpus (int) – Number of CPUs required
  • time (str) – Execution time limit in “hour:min:sec” format
  • stdout (str) – Output log filename
  • stderr (str) – Error log filename
  • kill (bool) – Raise exception if subprocess exits abnormally
Returns:

Command summary

Return type:

pylib.fun.Summary

Module contents