コード例 #1
0
ファイル: EDTestCaseEDJob.py プロジェクト: antolinos/edna
 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)
コード例 #2
0
ファイル: EDTestCaseEDJob.py プロジェクト: kif/edna
 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)
コード例 #3
0
 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())
コード例 #4
0
ファイル: EDParallelExecute.py プロジェクト: rentreg/edna
 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())