clusterlib.scheduler.queued_or_running_jobs

clusterlib.scheduler.queued_or_running_jobs()

Return the names of the queued or running jobs under SGE and SLURM

The list of jobs could be either the list of all jobs on the scheduler or only the jobs associated to the user calling this function. The default behavior is dependant upon scheduler configuration. Try qstat in SGE or squeue in SLURM to know which behavior it follows.

Returns:

out : list of string,

Returned a list containing all the names of the jobs that are running or queued under the SGE or SLURM scheduler.