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.