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)
args
with_traceback()

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

DIRAC.WorkloadManagementSystem.Client.Matcher.parseVersion(releaseVersion)

Convert the releaseVersion into a PEP-440 style string

Parameters

releaseVersion (str) – The software version to use