def callBack(self, _strJobId): """ Example of Call Back function ... """ myJob = EDJob.getJobFromID(_strJobId) strOutput = myJob.getDataOutput().strip() EDAssert.equal(strOutput, self.strXmlInput, "From Callback: Output is OK") EDAssert.equal("success", myJob.getStatus(), "From Callback: Job %s is finished with ''success''" % _strJobId)
def failureJobExecution(self, _jobId): """ Method called when the execution of the plugin finishes with failure @param _jobId: string of type EDPluginName-number """ self.DEBUG("EDParallelExcecute.failureJobExecution for %s" % _jobId) self.semaphoreNbThreadsRelease() with self.locked(): if self.__functXMLerr is not None: self.__functXMLerr(EDJob.getJobFromID(_jobId).getPlugin().getDataInput())
def failureJobExecution(self, _jobId): """ Method called when the execution of the plugin finishes with failure @param _jobId: string of type EDPluginName-number """ self.DEBUG("EDParallelExcecute.failureJobExecution for %s" % _jobId) self.semaphoreNbThreadsRelease() with self.locked(): if self.__functXMLerr is not None: self.__functXMLerr( EDJob.getJobFromID(_jobId).getPlugin().getDataInput())