We are using Flower to visualize tasks and workers in Celery. The problem is that we use Amazon autoscaling to spawn new workers. Hence, old workers terminate one day and new workers are spawned the next day and they register themselves as new workers. The old ones still remain there as offline workers. This makes sense if we are interested to see the stats of each worker. Is there a way to hide them if we are not interested in their stats?
Also most of the times a new workers registers itself, Flower has an issue showing it, it shows
Unknown worker 'celery@ip-172-XX-XX-XX'
How can we ensure that each worker can be visualized properly when online and avoid this error?
I wanted the same too, and not so long ago created an issue on GitHub for it - https://github.com/mher/flower/issues/840. Soon after that Bjoern Stiel wrote an implementation, which is still waiting to be merged (https://github.com/mher/flower/pull/852). You can simply grab this branch and use it. :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With