PilotEfficiencyPolicy

PilotEfficiencyPolicy

Policy that calculates the efficiency following the formula:

done / ( failed + aborted + done )

if the denominator is smaller than 10, it does not take any decision.

class DIRAC.ResourceStatusSystem.Policy.PilotEfficiencyPolicy.PilotEfficiencyPolicy

Bases: DIRAC.ResourceStatusSystem.PolicySystem.PolicyBase.PolicyBase

PilotEfficiencyPolicy class, extends PolicyBase

__init__()

Constructor

evaluate()

Before use, call setCommand.

Invoking super(PolicyCLASS, self).evaluate will invoke the command (if necessary) as it is provided and returns the results.

setCommand(policyCommand)

Set self.command.

Params:commandIn: a command object