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, pilotRef=None)

Bases: object

Logic for matching

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

c’tor

selectJob(resourceDescription, credDict)

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

exception DIRAC.WorkloadManagementSystem.Client.Matcher.PilotVersionError

Bases: Exception

__init__(*args, **kwargs)
add_note()

Exception.add_note(note) – add a note to the exception

args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.