Пример #1
0
 def _terminate(self):
     AmqpManager.instance().terminate()
     CoroutineFlaskApplication._terminate(self)
Пример #2
0
 def run(self):
     # AmqpManager.instance().getMessageQueue('mq_mess').open(AccessMode.READ)
     CoroutineFlaskApplication.run(self)
Пример #3
0
 def __init__(self):
     CoroutineFlaskApplication.__init__(self)
Пример #4
0
 def init(self):
     CoroutineFlaskApplication.init(self)
     # AmqpManager.instance().init(self.getConfig().get('amqp_config'))
     cfgs = self.getConfig()
     UserManager.instance().init(cfgs.get('user_service'))
Пример #5
0
 def init(self):
     CoroutineFlaskApplication.init(self)
     AmqpManager.instance().init(self.getConfig().get('amqp_config'))
     TraceService.instance().init(self.getConfig().get('data_tracer'))