Ejemplo n.º 1
0
def script_example():
    import script_wrapper
    script_as_module = script_wrapper("echo")
    connection_str = 'librabbitmq://*****:*****@%s:%s//' % ("localhost", "5672")
    consumer = QPI(script_as_module, connection_str, "intake_queue", "output_queue")
    consumer.run()
Ejemplo n.º 2
0
def module_example():
    connection_str = 'librabbitmq://*****:*****@%s:%s//' % ("localhost", "5672")
    consumer = QPI(example_module, connection_str, "intake_queue", "output_queue")
    consumer.run()