mher/flower — pull request #29 by tbarbugli (2012-10-23 14:50:25+00:00)
Title: add sleep parameter and remove to list function in workers view

Hi,
here at Fashiolista we are experimenting with flower and we found few use cases that are missing from the main project.
Because we start and stop new celery workers every day we have noticed that the workers list get full of dead celery workers really fast.
Another thing we have noticed is that the inspection can be a bit too much intensive (cpu).
To avoid cpu usage waste I changed flower in a way that if nothing is requested for an amount of time than the state thread will go in sleep mode and stop the inspection, the sleep time is configurable by command line and defaults to 0 (dont sleep).
Every time a request is made the sleep counter goes back to 0 so that when a user refresh or open a page it will wake up the state thread.
I look forward to have feedback from you, I wish we can merge with this two feature in the main repo.
Tommaso