I have a asynchronous task in RQ-worker to download files from the internet, i want to monitor the progress in a webpage, i searched over internet and can not find any methods to synchronously display the progress or task states.
there's a way that is, i save the RQ-worker states in mysql, every time when my job-queue changed state,update row in mysql, in html webpage, set a timer, request the api every one or two seconds, and then refresh the status div.
I just want to know is there any other methods more elegant to solve this problem?