JobRunningMatchedRatioPolicy¶
JobRunningMatchedRatioPolicy
Policy that calculates the efficiency following the formula:
( running ) / ( running + matched + received + checking )
if the denominator is smaller than 10, it does not take any decision.
- class DIRAC.ResourceStatusSystem.Policy.JobRunningMatchedRatioPolicy.JobRunningMatchedRatioPolicy¶
Bases:
PolicyBase
The JobRunningMatchedRatioPolicy class is a policy that checks the efficiency of the jobs according to what is on JobDB.
Evaluates the JobRunningMatchedRatioPolicy results given by the JobCommand.JobCommand
- __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