CC-3346: Recorder: Merge recorder with pypo
- separated rabitMQ listener part out from pypoFetch and created pypomessagehandler.py Conflicts: python_apps/pypo/pypofetch.py
This commit is contained in:
parent
91ef7f7669
commit
5aabe89069
5 changed files with 238 additions and 112 deletions
|
@ -16,6 +16,7 @@ from Queue import Queue
|
|||
from pypopush import PypoPush
|
||||
from pypofetch import PypoFetch
|
||||
from recorder import Recorder
|
||||
from pypomessagehandler import PypoMessageHandler
|
||||
|
||||
from configobj import ConfigObj
|
||||
|
||||
|
@ -127,11 +128,19 @@ if __name__ == '__main__':
|
|||
api_client = api_client.api_client_factory(config)
|
||||
api_client.register_component("pypo")
|
||||
|
||||
q = Queue()
|
||||
|
||||
pypoFetch_q = Queue()
|
||||
recorder_q = Queue()
|
||||
|
||||
pp = PypoPush(q)
|
||||
pypoPush_q = Queue()
|
||||
|
||||
pmh = PypoMessageHandler(pypoFetch_q, recorder_q)
|
||||
pmh.daemon = True
|
||||
pmh.start()
|
||||
|
||||
pf = PypoFetch(pypoFetch_q, pypoPush_q)
|
||||
pf.daemon = True
|
||||
pf.start()
|
||||
|
||||
pp = PypoPush(pypoPush_q)
|
||||
pp.daemon = True
|
||||
pp.start()
|
||||
|
||||
|
@ -139,10 +148,6 @@ if __name__ == '__main__':
|
|||
recorder.daemon = True
|
||||
recorder.start()
|
||||
|
||||
pf = PypoFetch(q, recorder_q)
|
||||
pf.daemon = True
|
||||
pf.start()
|
||||
|
||||
#pp.join()
|
||||
pf.join()
|
||||
logger.info("pypo fetch exit")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue