ternya/ternya.py
def work(self):
        """
        Start ternya work.

        First, import customer's service modules.
        Second, init openstack mq.
        Third, keep a ternya connection that can auto-reconnect.
        """
        self.init_modules()
        connection = self.init_mq()
        TernyaConnection(self, connection).connect()
def work(self):
        """
        Start ternya work.

        First, import customer's service modules.
        Second, init openstack mq.
        Third, keep a ternya connection that can auto-reconnect.
        """
        self.init_modules()
        connection = self.init_mq()
        TernyaConnection(self, connection).connect()
Start ternya work.

        First, import customer's service modules.
        Second, init openstack mq.
        Third, keep a ternya connection that can auto-reconnect.