gmr / rabbitpy

A pure python, thread-safe, minimalistic and pythonic RabbitMQ client library
http://rabbitpy.readthedocs.org
BSD 3-Clause "New" or "Revised" License
242 stars 58 forks source link

Set consumer tag #112

Open toothlessfairy opened 6 years ago

toothlessfairy commented 6 years ago

Is there a possibility to set my own consumer tag for my rabbit consumers? I wish to see hostname of each consumer somewhere in Queue page of rabbit web interface.

Ghost93 commented 6 years ago

+1 much needed

gmr commented 5 years ago

I'll release a new version with this, but it is built in already.

queue = rabbitpy.Queue()
queue.consumer_tag = 'foo'
for message in queue:
    print(queue)