Example #1
0
    def execute(self):
        """ main loop """
        jobDescription = self.paramDict['Job']
        prodID = self.paramDict['TransformationID']
        jobID = self.paramDict['TaskID']

        job = LHCbJob(jobDescription)
        result = preSubmissionLFNs(job._getParameters(),
                                   job.workflow.createCode(),
                                   productionID=prodID,
                                   jobID=jobID)
        if not result['OK']:
            gLogger.error(result)
        return result
Example #2
0
    def __getOutputLFNs(self,
                        prodID='12345',
                        prodJobID='6789',
                        prodXMLFile=''):
        """ Will construct the output LFNs for the production for visual inspection.
    """
        if not prodXMLFile:
            gLogger.verbose('Using workflow object to generate XML file')
            prodXMLFile = self.__createWorkflow()

        job = LHCbJob(prodXMLFile)
        result = preSubmissionLFNs(
            job._getParameters(),
            job.workflow.createCode(),  # pylint: disable=protected-access
            productionID=prodID,
            jobID=prodJobID)
        if not result['OK']:
            return result
        lfns = result['Value']
        gLogger.verbose(lfns)
        return result