Lets say I have a database model in Django which stores top 100 songs. This data comes from an api.
The problem is that the song ranking may change from time to time [30 minutes/ 1 hour].
I wish to implement a method in the web app such that it automatically runs a particular function in python [ which updates the database by sending api requests] every 10 minutes , whether there is a user online or not.
How can I do this?