本文整理汇总了Python中EDJob.EDJob.getJobFromID方法的典型用法代码示例。如果您正苦于以下问题:Python EDJob.getJobFromID方法的具体用法?Python EDJob.getJobFromID怎么用?Python EDJob.getJobFromID使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类EDJob.EDJob
的用法示例。
在下文中一共展示了EDJob.getJobFromID方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: callBack
# 需要导入模块: from EDJob import EDJob [as 别名]
# 或者: from EDJob.EDJob import getJobFromID [as 别名]
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: failureJobExecution
# 需要导入模块: from EDJob import EDJob [as 别名]
# 或者: from EDJob.EDJob import getJobFromID [as 别名]
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())