SLURMResourceUsage

The SLURM TimeLeft utility interrogates the SLURM batch system for the current CPU consumed, as well as its limit.

class DIRAC.Resources.Computing.BatchSystems.TimeLeft.SLURMResourceUsage.SLURMResourceUsage(jobID, parameters)

Bases: ResourceUsage

This is the SLURM plugin of the TimeLeft Utility

__init__(jobID, parameters)

Standard constructor

getResourceUsage()

Returns S_OK with a dictionary containing the entries CPU, CPULimit, WallClock, WallClockLimit, and Unit for current slot.