MCPcopy Index your code
hub / github.com/StackStorm/st2 / main

Function main

tools/queue_consumer.py:60–69  ·  view source on GitHub ↗
(queue, exchange, routing_key="#")

Source from the content-addressed store, hash-verified

58
59
60def main(queue, exchange, routing_key="#"):
61 exchange = Exchange(exchange, type="topic")
62 queue = Queue(
63 name=queue, exchange=exchange, routing_key=routing_key, auto_delete=True
64 )
65
66 with transport_utils.get_connection() as connection:
67 connection.connect()
68 watcher = QueueConsumer(connection=connection, queue=queue)
69 watcher.run()
70
71
72if __name__ == "__main__":

Callers 1

queue_consumer.pyFile · 0.70

Calls 5

ExchangeClass · 0.90
QueueClass · 0.90
QueueConsumerClass · 0.70
connectMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected