Utils

Utilities for WMS

DIRAC.WorkloadManagementSystem.Utilities.Utils.createJobWrapper(jobID, jobParams, resourceParams, optimizerParams, extraOptions='', defaultWrapperLocation='DIRAC/WorkloadManagementSystem/JobWrapper/JobWrapperTemplate.py', log=<DIRAC.FrameworkSystem.private.standardLogging.LoggingRoot.LoggingRoot object>, logLevel='INFO')

This method creates a job wrapper filled with the CE and Job parameters to execute the job. Main user is the JobAgent

DIRAC.WorkloadManagementSystem.Utilities.Utils.createRelocatedJobWrapper(wrapperPath, rootLocation, jobID, jobParams, resourceParams, optimizerParams, extraOptions='', defaultWrapperLocation='DIRAC/WorkloadManagementSystem/JobWrapper/JobWrapperTemplate.py', log=<DIRAC.FrameworkSystem.private.standardLogging.LoggingRoot.LoggingRoot object>, logLevel='INFO')

This method creates a job wrapper for a specific job in wrapperPath, but assumes this has been reloated to rootLocation before running it.

DIRAC.WorkloadManagementSystem.Utilities.Utils.getProxyFileForCloud(ce)
Get a file with the proxy to be used to connect to the

given cloud endpoint

Parameters:

ce – cloud endpoint object

Returns:

S_OK/S_ERROR, value is the path to the proxy file