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

Bases: DIRAC.Resources.Computing.BatchSystems.TimeLeft.ResourceUsage.ResourceUsage

This is the SLURM plugin of the TimeLeft Utility

__init__()

Standard constructor

getResourceUsage()

Returns a dictionary containing CPUConsumed, CPULimit, WallClockConsumed and WallClockLimit for current slot. All values returned in seconds.