celery-progress
celery-progress copied to clipboard
The progress bar does not auto-update when the network error occured and then restored
It seems the progress bar will not update anymore when it encountered a network Error. For example, when I flap the network, the progress bar will stop updating forever. I also tried to install celery-progress[websockets,redis] instead of celery-progress, but it still does not work. Do you have any good idea to make the progress bar auto-update when the network is restored?
See related issue https://github.com/czue/celery-progress/issues/13 for a way to approach this.
I imagine this could be done in multiple ways:
- Retry continuously with a cool down interval.
- Retry a few times then give up.
- Show a button/link for the user to initiate a retry.
I don't know if any of these should be the default behaviour or not.
No strong feelings about the default, but I do think that all of these options would be better than the current behavior. Options 1 and/or 2 have the benefit of not needing to introduce any new UI components so I guess I'd advocate for one of those.