Example #1
0
def cast(conf, topic, msg):
    """Send a message on a topic without waiting for a response"""
    #with ConnectionContext(conf, connection_pool) as conn:
    #    conn.topic_send(topic, msg)
    return amqp.cast(conf, topic, msg,
                     amqp.create_connection_pool(conf, Connection))
Example #2
0
def cast(conf, topic, msg):
    """Send a message on a topic without waiting for a response"""
    #with ConnectionContext(conf, connection_pool) as conn:
    #    conn.topic_send(topic, msg)
    return amqp.cast(conf, topic, msg,
                     amqp.create_connection_pool(conf, Connection))
Example #3
0
def create_connection(conf, new=True):
    """Create a connection"""
    return amqp.create_connection(
        conf, new, amqp.create_connection_pool(conf, Connection))
Example #4
0
def create_connection(conf, new=True):
    """Create a connection"""
    return amqp.create_connection(
        conf, new, amqp.create_connection_pool(conf, Connection))