Matcher

Encapsulate here the logic for matching jobs

Utilities and classes here are used by MatcherHandler

class DIRAC.WorkloadManagementSystem.Client.Matcher.Matcher(pilotAgentsDB=None, jobDB=None, tqDB=None, jlDB=None, opsHelper=None)

Bases: object

Logic for matching

__init__(pilotAgentsDB=None, jobDB=None, tqDB=None, jlDB=None, opsHelper=None)

c’tor

selectJob(resourceDescription, credDict)

Main job selection function to find the highest priority job matching the resource capacity