def run():
    logging.info('Run')
    hostname = app.config['AMQP_URI']
    incoming_connection, incoming_consumer = setup_incoming(hostname)

    listen(incoming_connection)
    incoming_consumer.close()
Exemple #2
0
def run():
    logging.info('Run')
    hostname = app.config['AMQP_URI']
    incoming_connection, incoming_consumer = setup_incoming(hostname)

    listen(incoming_connection)
    incoming_consumer.close()
def run():
    logging.info('Run')
    hostname = app.config['AMQP_URI']
    incoming_connection, incoming_consumer = setup_incoming(hostname)
    error_producer = setup_error_queue(hostname)

    listen(incoming_connection, error_producer)
    incoming_consumer.close()
def run():
    logging.info('Run')
    hostname = app.config['AMQP_URI']
    incoming_connection, incoming_consumer = setup_incoming(hostname)
    error_producer = setup_error_queue(hostname)

    listen(incoming_connection, error_producer)
    incoming_consumer.close()