MCPcopy Create free account
hub / github.com/StackStorm/st2 / get_consumers

Method get_consumers

tools/queue_consumer.py:39–44  ·  view source on GitHub ↗
(self, Consumer, channel)

Source from the content-addressed store, hash-verified

37 self.queue = queue
38
39 def get_consumers(self, Consumer, channel):
40 return [
41 Consumer(
42 queues=[self.queue], accept=["pickle"], callbacks=[self.process_task]
43 )
44 ]
45
46 def process_task(self, body, message):
47 print("===================================================")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected