WMSUtilities
A set of utilities used in the WMS services
- DIRAC.WorkloadManagementSystem.Service.WMSUtilities.getPilotCE(pilotDict)
Instantiate and return a CE bound to a pilot
- DIRAC.WorkloadManagementSystem.Service.WMSUtilities.getPilotProxy(pilotDict)
Get a proxy bound to a pilot
- Parameters:
pilotDict (dict) – pilot parameters
- Returns:
S_OK/S_ERROR with proxy as Value
- DIRAC.WorkloadManagementSystem.Service.WMSUtilities.getPilotRef(pilotReference, pilotDict)
Add the pilotStamp to the pilotReference, if the pilotStamp is in the dictionary, otherwise return unchanged pilotReference.
- DIRAC.WorkloadManagementSystem.Service.WMSUtilities.killPilotsInQueues(pilotRefDict)
kill pilots queue by queue
- Params dict pilotRefDict:
a dict of pilots in queues
- DIRAC.WorkloadManagementSystem.Service.WMSUtilities.setPilotCredentials(ce, pilotDict)
Instrument the given CE with proxy or token
- Parameters:
ce (obj) – CE object
pilotDict – pilot parameter dictionary
- Returns:
S_OK/S_ERROR