A practical example using Django with django-rq to show results of a long running process. In this case, it runs espeak (text-to-speech) from an input field, polls the status of the espeak to mp3 conversion with a progress indicator, then updates the page with the result (audio player to file).
Using espeak
here is arbitrary, it could be any "long" process. For example: image processing, video conversion, batch processing, etc.
There's a lot of documentation for each of the components used here, but I couldn't find a practical example/application so I figured I'd make one. Needless to say this is just a development example so don't assume the deployment strategy is production-ready.
docker-compose up -d
then browse to
http://hostip:7777
docker logs name_of_rq_container --follow