4 HCE project, Python bindings, Distributed Tasks Manager application. 5 RTCPreprocessor Class content main functional for preprocessor for realtime crawling. 8 @file RTCPreprocessor.py 9 @author Oleksii <developers.hce@gmail.com>, Alexander Vybornyh <alexander.hce.cluster@gmail.com> 10 @link: http://hierarchical-cluster-engine.com/ 11 @copyright: Copyright © 2013-2014 IOIX Ukraine 12 @license: http://hierarchical-cluster-engine.com/license/ 25 pr = Profiler.Profiler()
26 if pr
and pr.status > 0:
43 exit_code = APP_CONSTS.EXIT_FAILURE
45 if __name__ ==
"__main__":
52 app.args.add_argument(
'-c',
'--config', action=
'store', metavar=
'config_file', help=
'config ini-file',
59 exit_code = app.exitCode
62 if pr.errorMsg
and app.logger:
63 app.logger.error(pr.errorMsg)
65 except Exception
as err:
66 sys.stderr.write(str(err) +
'\n')
67 exit_code = APP_CONSTS.EXIT_FAILURE
69 exit_code = APP_CONSTS.EXIT_FAILURE
RTCPreprocessor Class content main functional for preprocessor for realtime crawling, class inherits from foundation.CementApp.