HTCondorResourceUsage

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

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

Bases: ResourceUsage

This is the HTCondor plugin of the TimeLeft Utility. HTCondor does not provide any way to get the wallclock/cpu limit, the batch system just provides fair-sharing to users and groups: the limit depends on many parameters. However, some Sites have introduced a MaxRuntime variable that sets a wallclock time limit to the allocations and allow us to get an estimation of the resources usage.

__init__(jobID, parameters)

Standard constructor

getResourceUsage()

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