name of channel in rabitmq consumer using celery

138 Views Asked by At

I have setup, where we are using celery and RabbitMQ to schedule our task based on data.

When we create multiple consumer to same queue, it create bindings and web portal shows the consumer IP in channel column.

Consumer Channel

Its hard to find the consumer based on IP:PORT. Is there any way in celery configuration, where we can give the name of these channel? by which we know, which host or machine consume this message.

1

There are 1 best solutions below

2
On

If you want the host name, is there a reason why you cannot just use

socket.gethostbyaddr(ip)