JobWrapperUtilities
JobWrapperUtilities
This module contains the functions that are used by the JobWrapperTemplate to execute the JobWrapper.
- exception DIRAC.WorkloadManagementSystem.JobWrapper.JobWrapperUtilities.JobWrapperError(value)
Bases:
ExceptionCustom exception for handling JobWrapper “genuine” errors
- __init__(value)
- add_note()
Exception.add_note(note) – add a note to the exception
- args
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- DIRAC.WorkloadManagementSystem.JobWrapper.JobWrapperUtilities.createAndEnterWorkingDirectory(jobID: str, workingDirectory: str, jobReport: JobReport) bool
Create the working directory and change to it
- DIRAC.WorkloadManagementSystem.JobWrapper.JobWrapperUtilities.executePayload(job: JobWrapper) bool
Execute the payload
- DIRAC.WorkloadManagementSystem.JobWrapper.JobWrapperUtilities.finalize(job: JobWrapper) int
Finalize the job
- DIRAC.WorkloadManagementSystem.JobWrapper.JobWrapperUtilities.getJobWrapper(jobID: int, arguments: dict, jobReport: JobReport) JobWrapper
Create a JobWrapper instance
- DIRAC.WorkloadManagementSystem.JobWrapper.JobWrapperUtilities.killJobWrapper(job: JobWrapper) int
Function that stops and ultimately kills the JobWrapper
- DIRAC.WorkloadManagementSystem.JobWrapper.JobWrapperUtilities.processJobOutputs(job: JobWrapper) bool
Process the job outputs
- DIRAC.WorkloadManagementSystem.JobWrapper.JobWrapperUtilities.rescheduleFailedJob(jobID: str, minorStatus: str, jobReport: JobReport)
Function for rescheduling a jobID, setting a minorStatus
- DIRAC.WorkloadManagementSystem.JobWrapper.JobWrapperUtilities.resolveInputData(job: JobWrapper) bool
Resolve the input data
- DIRAC.WorkloadManagementSystem.JobWrapper.JobWrapperUtilities.sendJobAccounting(job: JobWrapper, status: str, minorStatus: str)
safe sending job accounting (always catching exceptions)
- DIRAC.WorkloadManagementSystem.JobWrapper.JobWrapperUtilities.transferInputSandbox(job: JobWrapper, inputSandbox: list) bool
Transfer the input sandbox