Refactor and cleanup getMatchJob
This PR:
- cleans obsolete code from JobBroker
- move code that queries for matching jobAgentIds for remote in separate function
- refactors the logic of getting a match job agent id
- refactor the return code that is set in matchAnswer
- add
TQ_db_lookup
monitoring before query ingetNumberWaitingForSite
- move
TQ_get_match_job
monitoring at the beginning ofgetMatchJob()
- return from
getMatchJob
ifmatchRequest
does not contain"AliEnPrincipal"
Signed-off-by: Elena Mihailescu maria.mihailescu@upb.ro