def process(self):
""" Main entry point. All archives are processed """
success = 0
self.archives_processed = 0
for nodename, nodeidx, archive in self.job.nodearchives():
try:
self.processarchive(nodename, nodeidx, archive)
self.archives_processed += 1
except pmapi.pmErr as exc:
success -= 1
#pylint: disable=not-callable
self.adderror("archive", "{0}: pmapi.pmErr: {1}".format(archive, exc.message()))
except Exception as exc:
success -= 1
self.adderror("archive", "{0}: Exception: {1}. {2}".format(archive, str(exc), traceback.format_exc()))
return success == 0
评论列表
文章目录