def main(): greenlet = setup('pika', RabbitConnection, connect_to_hosts) if greenlet is not None: greenlet.start() greenlet.join() sys.exit(greenlet.get())
def main(): greenlet = setup('amqp-dispatcher.haigha', RabbitConnection, connect_to_hosts) if greenlet is not None: greenlet.start() greenlet.join() sys.exit(greenlet.get())
def main(): if not six.PY2: raise NotImplementedError( 'haigha currently does not support python 3, please use pika.') greenlet = setup('amqp-dispatcher.haigha', RabbitConnection, connect_to_hosts) if greenlet is not None: greenlet.start() greenlet.join() sys.exit(greenlet.get())
def main(): if not six.PY2: raise NotImplementedError( 'haigha currently does not support python 3, please use pika.' ) greenlet = setup('amqp-dispatcher.haigha', RabbitConnection, connect_to_hosts) if greenlet is not None: greenlet.start() greenlet.join() sys.exit(greenlet.get())
def main(): greenlet = setup('pika', RabbitConnection, connect_to_hosts) if greenlet is not None: greenlet.start() greenlet.join() sys.exit(greenlet.get())