machinery icon indicating copy to clipboard operation
machinery copied to clipboard

Get connected workers

Open taythebot opened this issue 2 years ago • 2 comments

Is there a way to get all connected workers to the broker? I couldn't find anything in the API documentation.

taythebot avatar Dec 28 '21 11:12 taythebot

What is the use case that you want to get this information? As me know, there is no such api.

qia01ng avatar Dec 28 '21 14:12 qia01ng

What is the use case that you want to get this information? As me know, there is no such api.

I'm trying to distribute a third party tool, which natively supports distribution via sharding. However, to achieve this I need to know how many workers are available.

My current solution is to create my own heartbeat with expiring keys in Redis or use a AMQP broker and list all consumers for the queue. Ideally a native API would be nice.

taythebot avatar Dec 29 '21 04:12 taythebot