Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Celery Flower dashboard remove worker

I recently installed flower 0.8.4, I created an snapshot in Digital Ocean and then launch a new server using this snapshot. Now flower is still showing the name of the old worker. How can I delete this worker while preserving existing worker information.

Celery starts:

worker -n celeryd@%h -f /usr/local/src/imbue/application/imbue/log/celeryd.log --loglevel=DEBUG --autoscale=50,10

Flower:

/usr/bin/python /usr/local/bin/flower --basic_auth=root:password --port=8082 --broker=amqp://user:password@rabbitmq:5672// --persistent=True --db=/usr/local/src/imbue/application/imbue/log/flower.db

enter image description here

like image 868
gogasca Avatar asked Feb 07 '23 06:02

gogasca


1 Answers

A new option purge_offline_workers (--purge_offline_workers / FLOWER_PURGE_OFFLINE_WORKERS) has been recently added to flower. This option removes offline workers from the flower dashboard.

For more information please refer to https://github.com/mher/flower/pull/852 and https://github.com/mher/flower/issues/604

Moreover, the latest version of mher/flower has a search box on the top right corner of the dashboard. By typing the word online in the search box you can filter out all offline workers.

like image 191
Aida Avatar answered Feb 10 '23 12:02

Aida