I have a web application in which I am trying to use celery to load background tasks from a database. I am currently loading the database on demand, but I want to load tasks at hourly intervals and work in the background. I use jar and code in python. Redis also works for me.
So far, using celery, I got a worker to process tasks and rhythm to send tasks to an employee at intervals. But I want to get the results [dataframe or query] from the worker, and if the result is not ready, he should load the previous worker result.
Any ideas on how to do this?
Edit
I am retrieving the results from the database using sqlalchemy and I am showing the results on a web page. I have my home page, which has all the different links that all lead to different graphs that I want to download in the background, so the user does not need to wait long for the download.
python database celery
Kalimantan
source share