Saturday, February 23, 2019

Re: Using progress bars while performing long computations and loading another page

Whenever I've used celery in the past, any logging in the celery task appears in the terminal running the celery worker.

On February 23, 2019 6:29:39 AM CST, Mohamed Maher <m.maher525@gmail.com> wrote:
Hello,

I have a scenario now where I send a GET request from a form in a web page to another page where I do some long processes before showing results. 

Now, I'd like to implement some progress bars that shows the level of completion of these processes and then get the output and show it on the results page.
I search alot about how to do that and I found some blogs about using Celery with a broker like RabbitMq or Redis to perform an asynchronus task along with the django project which loads an html page showing the progress bar and I tried to use this library 
https://github.com/czue/celery-progress
and I performed all the installation steps one by one however, the progress bar doesn't appear while I can't find any logs for the celery where I can figure out what is going wrong?

I'm asking about if there is an already implemented example with the same scenario which I can use or a better way explaining how to use celery and where can I find logs coming out of celery?


Thanks in advance

No comments:

Post a Comment